Log In Session Destroyed - (Solved) |
[eluser]Unknown[/eluser]
Hey, I am noticing that my new log in form, which points to: www.site.com/calendar/authorize creates a session and saves a value 'user_id' to it as well once the user is authenticated. That's fine. Problem is when I am on the control panel home page, I click on a link to create a calendar event: http://www.site.com/calendar/create/ the session is lost instantly and a new one is created. This happens regardless of whether I use the DB or not to store sessions (as instructed in your docs). The session loads by default in the autoload.php file, btw. Below is code of the authorize, index, create and controller functions in case you wish to look at the code. Create Function: (/create/) Code: function create(){ The Authorize Function: Code: function authorize() Index function (Welcome page - session shows up fine) Code: function index(){ Parent: Code: function Calendar(){ I hope this helps. Thank you for your time, everybody.
[eluser]Unknown[/eluser]
Interesting. For those going through the same thing, here is what I noticed: If I log in to: http://www.mysite.com/calendar and then directly visit: http://www.mysite.com/calendar/create the session holds Problem is the links lead to: http://www.mysite.com/index.php/calendar/create Note the index.php. I figured it had to be something head slappingly stupid. I was right! Time to remove the index.php reference for good. |
Welcome Guest, Not a member yet? Register Sign In |