hi 🙂
i think im confused about how to use session variables stored in a database....and would like some help
im not displaying code because i think im not getting the point of the session handler
after coding a website, on uploading it, i found that the host did not support file stored session variables
so i found out about custom session handling at zend
i tried using the code supplied while accessing another table that checks password and username
the session handling code worked on its own
the password and username code worked on its own
but on the same page, the session handling code doesnt work with the password and username checking code
i dont want the session created if the user doesnt enter the correct data so i need to check password and username in another table first (and extract some data to be used in the session from the table containing the password and username)
it could have been a coding problem but i didnt want to post anything until i got some feedback
also im not sure how to use variables stored in the database by the session handler
for example if i wanted a variable that held the access level of users that allows them access (e.g admin, member) to particular pages and i wanted to create a session variable called access_Level, how do i access this variable?
if the variable is file based its just $HTTP_SESSION_VARS['access_Level']
if the session variable is stored in a database how do i access the variable without having to open the database each time the user moves from page to page? that doesnt seem to make sense to me - thats why i think im confused about how to use the session data in the database