Welcome Guest, Not a member yet? Register   Sign In
Building an application i'm getting logged out when opening new tab for another app(backendPro)
#1

[eluser]mindprojects[/eluser]
Hi Guys....i would like to know what is going to happen in my app.
I was developing and something strange happened.
I opened a new window looking for the library backendPro and i've seen my session destroyed,why this happen,i've never seen another app destroying my session variables.
The are in different databases but both of them are using ci_sessions as session table.

Any suggestion?
#2

[eluser]mindprojects[/eluser]
I fixed the problem.
I think this could help many new developers:

'Every time you create a new function and you are thinking about to use the session library,create a unique $config['cookie_prefix']'

I realized that both my app and backendPro had this variable as empty!!!

I hope this could help:-)




Theme © iAndrew 2016 - Forum software by © MyBB