• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CI Session nad php config

#1
[eluser]Mr. Ed[/eluser]
Hello out there!
I've been testing CI for about a month.

And I have a question.

I have a very simple login controller with his login form in a view, which validates for the password and user and then redirects to another controller. The second controller, each time is called, checks for a session var ($this->session->userdata(logged)) if true, continues, if not, goes back to login controller. Untill here everything is ok, but happens that I do the login and goes to the main controller and when I click a button takes me back to the login page as if no login have been done. The most strange thing is that in the webserver and in other local servers works fine, but in mine not.
So i was wondering if the php.ini config affects in something to the use of CI session calss?

- session class is in the autolad, so should be available always and for all.
- I've tested it in a WAMP (W XP) where is not working, in the webserver of enom and in a WAMP (W VIsta Bussines). Both locals with PHP5.

If you need the code, I'll post it.

Thanks!


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.