• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Session/Redis question

#2
Redis is used to persist the session data. The default behavior is that session data is read from the persistent source into $_SESSION when the session starts. $_SESSION is written to the persistent source when the script ends or the session is otherwise ended, i.e. with session_write_close().

So, the two get() calls are not making any calls to the redis server.

The get calls you make are literally returning $_SESSION['user'] and $_SESSION['business']
Reply


Messages In This Thread
Session/Redis question - by NiteRaven - 12-06-2018, 04:34 PM
RE: Session/Redis question - by dave friend - 12-07-2018, 10:04 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


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