HI, i want to implement session in my site. If for a particular page should be accesses by only the loged in user. so I need to check whether the user is logged in or I shoud forward to Registration page or login page. Once the user is logged in we can use the userid to log the activities. How can we do this?
When the user logs in put the username/pass into a session. Check them on every page. Redirect if not logged in.
and please don't store sensitive information in the session. query the database for it. keeps things secure that way