Welcome Guest, Not a member yet? Register   Sign In
DB sessions, performances worries...
#3

[eluser]alpar[/eluser]
Native sessions use the file system that is faster than the db, but less secure, especially on a shared host, the above solution might be good for you, but here are some alternatives:

You can use native sessions for non sensitive data (lie you mentioned) and keep db session for sensitive data (this will result in 2 session cookies, unless you set your own native session handlers, for php, but you loose some security, having 2 session cookies should be ok)

Also you can add a destructor to the session library if your run php5 to iterate with the database only at the beginning and the end of the lifetime. (if you don't set all session variables at once)


Messages In This Thread
DB sessions, performances worries... - by El Forum - 08-20-2007, 07:12 PM
DB sessions, performances worries... - by El Forum - 08-21-2007, 10:14 AM
DB sessions, performances worries... - by El Forum - 08-21-2007, 01:06 PM
DB sessions, performances worries... - by El Forum - 08-22-2007, 11:15 AM
DB sessions, performances worries... - by El Forum - 08-22-2007, 12:27 PM
DB sessions, performances worries... - by El Forum - 08-22-2007, 12:31 PM
DB sessions, performances worries... - by El Forum - 08-22-2007, 12:44 PM
DB sessions, performances worries... - by El Forum - 08-22-2007, 01:10 PM
DB sessions, performances worries... - by El Forum - 09-17-2007, 07:04 AM
DB sessions, performances worries... - by El Forum - 09-17-2007, 08:54 AM
DB sessions, performances worries... - by El Forum - 09-07-2008, 05:59 PM



Theme © iAndrew 2016 - Forum software by © MyBB