Hi all
Basically I am doing a site for a client
Now basically its a two pronged website
1) General users can view all pages, but with limited information
2) Registered users can view all pages with all information
Now I am of the mind to use sessions for this, but tbh - I dont know how.
Currently I am just using a random number attached to the url of each page, kinda like a session - but when a user registers with the site, it captures that random number (its class on the site as ID)
WOuld session be the best thing to use, where when a registered user logs in, the random number is replaced by their registered number - thus displaying full information instead of limited information
I am just wondering should there be reference to the sessions on each page plus a check against the database to see if the random number in the url is actually a registered person number
I hope I am not confusing everyone with this and some of you will know what I am aiming for
Not looking for a complete solution just a nudge in the right direction - I can handle the coding myself if someone can possible explain how I should do this?
thanks