By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,062 Members | 1,374 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,062 IT Pros & Developers. It's quick & easy.

the user must not access the pages

P: n/a
hi,

when the user clicks the logout.php the session variables are
destroying. my doubt is when the user clicking back, again they are
entering into the pages. how to check whether session variables exist
or not. if the sessions variables are not exist i use header to go
login.html page. if yes the user can enter the pages.......in every
page i want to check whether session variables exist or not......
In every page for example login.php page(in login.html form
action=login.php) how to check whether session variables exist or not?


if suppose he logins using login.html page(action=login.php). if
username and password are correct he enters into login.php otherwise
he stay at login.html only.

now my doubt is how can we check for session variables whether are
they exists or not in login.php. obviously the sessions will not be
started before login.php. so every time he redirected to the
login.html page only....

we create the session variables when the user successfully enters into
login.php only.

thankyou in advance.....
Dec 12 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Wed, 12 Dec 2007 11:56:42 +0100, chowdary <ph*********@gmail.comwrote:
hi,

when the user clicks the logout.php the session variables are
destroying. my doubt is when the user clicking back, again they are
entering into the pages.
Well, they could see their cache, they shouldn't see the pages on a new
request.
how to check whether session variables exist
or not. if the sessions variables are not exist i use header to go
login.html page. if yes the user can enter the pages.......in every
page i want to check whether session variables exist or not......
Which is you answer: check wether the session is valid _on_every_page_. I
can't quite grasp your current problem with that..
--
Rik Wasmus
Dec 12 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.