Welcome Guest, Not a member yet? Register   Sign In
Normal session or database session for login security
#1

[eluser]veledrom[/eluser]
Hi,

What is the better way of holding login details? Shall I use normal CI session or CI database session? Does it make any difference in terms of security?

Thnaks
#2

[eluser]InsiteFX[/eluser]
Database sessions are safer!
#3

[eluser]veledrom[/eluser]
Thanks I'll use db session then.
#4

[eluser]PhilTem[/eluser]
One can easily convince yourself Wink

The thing with non-database stored sessions is: The data you store inside the session is stored on the user's side. Therefore he can easily sniff into the code and changes things. If you don't even encrypt your session-data then you're open to any type of session injection.
When using database stored sessions only the session-id is stored on the user's side. Nothing more therefore he can't sniff the code and change any data.

If you don't mind letting people read your session data or don't have any sensitive data to be stored within the session you can take some load off your MySQL-server and store the sessions on the user side.

But I personally always go with database-stored sessions. It's definitely safer Wink
#5

[eluser]veledrom[/eluser]
I was expecting to hear db session option so the first answer satisfied my thoughts about the option to go for that's why "one can easily convince yourself" case occurred Smile

Thanks




Theme © iAndrew 2016 - Forum software by © MyBB