Hello People,
I have been trying to understand how VB works with regard to session and cookies and stuff, and I just wanted to make sure I got it roughly right - as I am trying to use the VB user database as an access database for over 200 domains I have. I like the way VB works and wanted to get as close to it as possible.
Here goes - hope this is close to how it works.
Any input would be welcome
Graham
I have been trying to understand how VB works with regard to session and cookies and stuff, and I just wanted to make sure I got it roughly right - as I am trying to use the VB user database as an access database for over 200 domains I have. I like the way VB works and wanted to get as close to it as possible.
Here goes - hope this is close to how it works.
- An HTTP request is made to VB.
- VB checks the USER_AGENT to see if it is search engine (googlebot / Slurp) etc etc.
- VB checks to see if the IDHASH is in the session table
- Add the IDHASH - CREATE SESSION HASH to session table
- if USER_AGENT is SE the bypass flag is set in the session table (dont fully understand this bit)
- Tests for cookie support in the browser
- if cookies are enabled stuffs the sessionhash in the cookie
- if cookies are not enabled the URL get stuffed with the S varable
- if session now attempts to login the USERID and PASSWORD is checked and stuffed into the cookie
- if the user has not logged via cookie the loggedin in the DB is set to 1
Any input would be welcome
Graham
Comment