Welcome Guest, Not a member yet? Register   Sign In
COOKIE AND SESSIONS dont work both in code igniter and native php
#5

[eluser]andykhatter1[/eluser]
Hi

I just tried creating another simple project to test sessions and cookies on my server and it just worked fine.
And if I put session_start() right in the beginning on the index.php file of my codeigniter project it gives me a new session id everytime the page is hit.



So that problem has to be within the codeigniter settings itself.

Edit:
SO now putting the session_start right at the beginning of the index.php file creates a session. So I think the problem was only with right placement...But again only my php sessions work and not codeigniter...If someone could tell where to put my session_start so that atleast I can use the php sessions if not much....

Thanks


Messages In This Thread
COOKIE AND SESSIONS dont work both in code igniter and native php - by El Forum - 10-30-2012, 12:50 PM



Theme © iAndrew 2016 - Forum software by © MyBB