Sessions |
[eluser]RedIgniter[/eluser]
Hello everyone, I've created a website where sessions doesn't work on Chrome and some Firefox browsers, tho I currently have firefox, the site didn't work on one of the school computers. Anyways, I've posted before but didn't get much help so any help is appreciated. What should I change to fit the Chrome's session settings?
[eluser]Rolly1971[/eluser]
not sure what to tell you, i have tested the sessions on IE, Firefox (and variants of), Webkit (Safari, Chrome), and Opera and they seem to work fine. can you post some sample code ? it would help to figure out what the problem is.
[eluser]RedIgniter[/eluser]
It's a normal login script from controller with couple of checks, I haven't changed the default values of table names and field names, when I use chrome to login it doesn't keep the session, it doesn't login, but when I use firefox it does.
[eluser]Le Bang[/eluser]
maybe config to session DB store. I see session cookie have some problem.
[eluser]Suhas nazir[/eluser]
I think it's better to use database session instead of cookie session,I am sure your problem will solved if you are going to use database session
[eluser]Dennis Rasmussen[/eluser]
There CAN be a lot of issues with IE 6,7 and even 8 when it comes to CI_Sessions. Instead of locating the specific error in your case (as there are quite many different ones), then I'd recommend using a library like this: http://codeigniter.com/wiki/Native_session/
[eluser]WanWizard[/eluser]
Not really needed if you configure the session library correctly. The biggest culprit for IE is the illegal underscore in the cookie name (which unfortunately is the default for any CI installation). Native sessions are more forgiving, because PHP takes care of some config work behind the scenes. Native sessions are also an option if you want server-side storage but think the database option is to costly.
[eluser]RedIgniter[/eluser]
ok the site is kayfer.com and demo email: [email protected] password: 123 please use chrome to login and see if it works because I use my desktops chrome and it doesn't store the session it doesn't login... and what changes should I make to make it work with other browsers such as IE
[eluser]WanWizard[/eluser]
If you use Chrome's developer tools (click on storage, cookies), you can check if the cookie is created, and how. You'll see that the session cookie is created without problems, with a 30 minute expiry. I can login without problems here, using Chrome 6.0.472.63 on Linux. |
Welcome Guest, Not a member yet? Register Sign In |