• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Session best practice

#1
[eluser]dianikol85[/eluser]
Hi guys! A quick question.

Is the use of session table in database better practice than without using the table?

#2
[eluser]LuckyFella73[/eluser]
Yes.

That way your cookie only contains the session id and all
session values are only in your database. Don't forget to set
an encryption_key in config.php - Should be 32 characters long.

#3
[eluser]dianikol85[/eluser]
Thanks LuckyFella73. I will do it that way.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.