Welcome Guest, Not a member yet? Register   Sign In
Multiple Application Session collision
#1

[eluser]stalebrew[/eluser]
I am new to CodeIgniter and everything has been great thus far.

I have one small problem with session collisions. I have 2 applications; one for the front end and one for the admin. If I am logged into the admin, and then I login to the front-end with a user account, the admin application will now read the user account session data(and vice versa). I have tried changing the session cookie prefix and cookie name but nothing has worked.

This scenario will most likely not happen in the real world with this particular application but for some applications it might be a problem.

Am I just missing something?

*ADDED: By the way, I'm using Native Sessions.
#2

[eluser]stalebrew[/eluser]
I set the session_name() inside the native session library to have separate session names for the Admin and Client ends. Is this the best practice?
#3

[eluser]stalebrew[/eluser]
Well I'm so glad I could inspire you to create an account so that you could share your wonderful insight with us.
#4

[eluser]Phil Sturgeon[/eluser]
Have you tried using the session options in the config file? They work pretty well. ;-P
#5

[eluser]stalebrew[/eluser]
Yeah, the reason the session options in the config file did not work was because I am using the Native Sessions library.




Theme © iAndrew 2016 - Forum software by © MyBB