reloads data when back button clicked in authorized page
Posted: Tue May 30, 2006 3:27 am
Jcart | Please use
so when the back button is clicked then enter data is posted back to authorized page and code works and DETAILS are displayed.
I tried to clear client cache by adding a line in main.php. But I guess that was not so helpful
Could some one help me with this.
Thank you
Vani
Jcart | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hi all,
I am running Linux and I want to work with no cookies
I have configured PHP as
session.use_cookies =0 session_use_only_cookies = 0
session.use_trans_sid =0 sess_nmae = PHPSESSID
register_global = Disable.
Since session.use_trasn_sid =0 I have taken care to add all the session id to the url by my self.
I have page for authorized user with session.
The code works just fine for the all the authication and data, but when user logout all my session data and session is destroyed but if I click back button from the browser then data is reloaded with different session_id.
Can some one suggest me how to stop this, when user clicks back button they are asked to login again and login form shd apprear.
I read some of the problem people say that we have to make client side cache to null or Cache_limiter = nocache. etc
But nothing is working.
The codes goes like this.
I have a main page called main.php.
From main page all the other files are called.
/* ------------------ Main.php ----------------- */Code: Select all
<?php
// since all the file are through this main page session_start is the first line
session_start();
Check file name
$filename = array("list.php", "details.php", "authorized.php","search.php","index.php");
if(filename exist in array)
include ("filename.php");
else
include("index.php");
?>
/*---------------Authorized.php------------ */
<?php
if(submit button is not null)
{ query = "check database and see if user and password is correct";
if(user and password is correct)
{ ->then show the DETAILS
->Logout button to destroy session and session variable
}
elseif(user and password is not correct)
{ show LOGIN FORM;
}
} // close if submit button is not null
elseif(submit button is null)
{ show LOGIN FORM;
} //close if submit button is not null
?>I tried to clear client cache by adding a line in main.php. But I guess that was not so helpful
Could some one help me with this.
Thank you
Vani
Jcart | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]