Sessions - Bug? |
[eluser]The Wizard[/eluser]
i really dont know, all i know, i had the same problem, i fixed it somehow, i remember that the path was crucial, like majidmx sayed. lets ask dr house ![]()
[eluser]majidmx[/eluser]
I remember in one of the projects setting the cookie domain helped me a lot in terms of getting sessions working properly. so set it like this : Code: $config['cookie_domain'] = ".yahoo.com"; and if you make it either of these cases : Code: $config['cookie_domain'] = "www.yahoo.com"; We just want to figure out the root of the problem, so we won't face it anymore, as your problem is fixed right now. btw, is there any benefit in not closing the PHP files with "?>" ? I close the scripts all the time, what's the difference ?
[eluser]The Wizard[/eluser]
majidmx: yes there is ! http://ellislab.com/codeigniter/user-gui...guide.html ![]() for the session bug, i encountered it again, now im trying to figure out, where it is, and im going crazy.
[eluser]The Wizard[/eluser]
i think i got it, let me post you a unit and its failure. Code: <?php so, if you check when the session is created, it gets a BOOLEAN value, TRUE. So when you compare a BOOL, it somehow returns FALSE even if its there. for me, THIS was the bug and im PRETTY SURE, people have this too ![]() THERE ARE some STRANGE BEHAVOURS in CI SOMETIMES, that you should be aware off. Im off to duty, take care friends ![]() |
Welcome Guest, Not a member yet? Register Sign In |