Git Product home page Git Product logo

Comments (8)

MrAndreius avatar MrAndreius commented on August 24, 2024

Уточнение проблема существует в браузере Google Crome
в Opera авторизация происходит без проблем

from cogear2.

dbelyaeff avatar dbelyaeff commented on August 24, 2024

На страницу админа, которая не отображается? Поясните.

Там от браузера не зависит авторизация, никаких хитрых скриптов нет. Работаю под Хромом, тестирую и под Оперой.

from cogear2.

MrAndreius avatar MrAndreius commented on August 24, 2024

ну вот не знаю, на моей машине почему то зависит ....
нет авторизации в crome
иду на http_://site.com/login ввожу данные ставлю remember me , жму вход
меня редиректит на http_://site.com и показывает Доступ запрещён
Вы не обладаете правом просматривать содержимое данной страницы.
набираю http_://site.com /admin никуда не редиректит а сразу показывает
Доступ запрещён
Вы не обладаете правом просматривать содержимое данной страницы.

меняю браузер проблема исчезает

только что попробовал специально в ФФ (cogear там еще не разу не открывался) все работает
после авторизации редирект на страницу шестеренок

переключаюсь на crome - авторизация не работает

в crome хранилище сессий и кук пустое
в опере есть записи
http://cogear/admin/
cogear id 1 / Около 4 недель
cogear hash 9e87f204f8ceef51aa4d2a60c2ce373a / Около 4 недель
cogear session c80884m0srdp00c6r9qqt3afh5 / Сессия

вот и получается что в crome не сохраняются сессии и куки из за чего не происходит авторизация

from cogear2.

dbelyaeff avatar dbelyaeff commented on August 24, 2024

Какой адрес сайта стоит в настройках?

from cogear2.

dbelyaeff avatar dbelyaeff commented on August 24, 2024

Так. Попробуй домен cogear.local вместо cogear. Будет работать?

from cogear2.

MrAndreius avatar MrAndreius commented on August 24, 2024

был просто cogear (предпочитаю локально создавать домены без указания зоны)

сменил на рекомендованный http_://cogear.local переименовал папку, прописал зону в файле site.php , перезапустил опенсервер и.....
урЯ! заработало
куки установились в crome
session
ptq5df6m4a7d8uvvf2f8sto950
.cogear.local
/
Session
33
id
1
.cogear.local
/
Fri, 15 Feb 2013 20:10:26 GMT
3
hash
9e87f204f8ceef51aa4d2a60c2ce373a
.cogear.local
/
Fri, 15 Feb 2013 20:10:26 GMT
36

авторизация проходит, после авторизации идет редирект на страницу шестеренок

from cogear2.

dbelyaeff avatar dbelyaeff commented on August 24, 2024

Ну я так и понял. Просто кука не ставится, когда домен однозонный. Исправлю.

from cogear2.

MrAndreius avatar MrAndreius commented on August 24, 2024

ок! 👍

from cogear2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.