I am curious how others solve this problem.
After storing the data from sessions in the database. How do you handle the
session data stored on the server and cookie on the users computer.
I know how to destroy the session data and remove the cookie, but how do you
handle this problem.
I see three possibilities:
1. Do not remove the session data and cookie Security concerns?
2. Remove the cookie, but not the session data Endless storage of useless
data on the server
3. Remove the session data and cookie
The problem with item #3, if you destroy the session data after
displaying the data on the users screen, and then the user refreshes the
page, he sees a blank page.
After storing the data from sessions in the database. How do you handle the
session data stored on the server and cookie on the users computer.
I know how to destroy the session data and remove the cookie, but how do you
handle this problem.
I see three possibilities:
1. Do not remove the session data and cookie Security concerns?
2. Remove the cookie, but not the session data Endless storage of useless
data on the server
3. Remove the session data and cookie
The problem with item #3, if you destroy the session data after
displaying the data on the users screen, and then the user refreshes the
page, he sees a blank page.
Comment