Welcome Guest, Not a member yet? Register   Sign In
Cookie
#1

[eluser]RedIgniter[/eluser]
Hello, I was trying to login using google chrome to one of my pages created in codeigniter framework, using its login features and sessions and it didn't work, I tried to login using firefox and it worked perfectly, and I have all the cookies enabled, anyone knows how to solve this problem?
#2

[eluser]WanWizard[/eluser]
What name did you use for the session cookie? What is the cookie domain and the cookie path?

Chrome is following the RFC to the letter, if one of the above is not correct, the cookie is rejected by the browser.
#3

[eluser]RedIgniter[/eluser]
what should i use?
#4

[eluser]WanWizard[/eluser]
Something that is RFC compliant?

Biggest pitfalls:
- underscore in the cookie name (the default value 'ci_session' is invalid!)
- invalid cookie domain ('localhost' is an invalid cookie domain!)
- invalid path (set it to '/' to make the cookie valid for the entire host)
#5

[eluser]RedIgniter[/eluser]
I am sorry, I am new not too advanced with codeigniter, how must I fix this error? What should I do? If you don't mind telling the steps. Thanks in advance.
#6

[eluser]WanWizard[/eluser]
You configure your session and cookie parameters in application/config/config.php.

I suggest you start there, your question suggests you haven't even changed the defaults...




Theme © iAndrew 2016 - Forum software by © MyBB