Connecting Tech Pros Worldwide Forums | Help | Site Map

the user must not access the pages

chowdary
Guest
 
Posts: n/a
#1: Dec 12 '07
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.....

Rik Wasmus
Guest
 
Posts: n/a
#2: Dec 12 '07

re: the user must not access the pages


On Wed, 12 Dec 2007 11:56:42 +0100, chowdary <php.queries@gmail.comwrote:
Quote:
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.
Quote:
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
Closed Thread