about axpiry of sessions
Moderator: General Moderators
-
bugthefixer
- Forum Contributor
- Posts: 118
- Joined: Mon Mar 22, 2004 2:35 am
about axpiry of sessions
how do i know whether session has expires so that i can do something else rather then showing a message displaying that session has been expired.
actually i want to refresh page if the session has expired. anybody can tell me how can i do that.
actually i want to refresh page if the session has expired. anybody can tell me how can i do that.
-
bugthefixer
- Forum Contributor
- Posts: 118
- Joined: Mon Mar 22, 2004 2:35 am
but i get this information.
Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you.
To resubmit your information and view this Web page, click the Refresh button.
and it happens due to sessions
Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you.
To resubmit your information and view this Web page, click the Refresh button.
and it happens due to sessions
-
d3ad1ysp0rk
- Forum Donator
- Posts: 1661
- Joined: Mon Oct 20, 2003 8:31 pm
- Location: Maine, USA
-
bugthefixer
- Forum Contributor
- Posts: 118
- Joined: Mon Mar 22, 2004 2:35 am
-
bugthefixer
- Forum Contributor
- Posts: 118
- Joined: Mon Mar 22, 2004 2:35 am
can u help me in code
wat shud i write after 'refresh:' and where shud i place it in the page.
and dont u think it will always refresh the page and page will never be displayed.
Code: Select all
header("refresh: ");and dont u think it will always refresh the page and page will never be displayed.
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
you need an in-page refresh.. not a header refresh...
Code: Select all
<head>
<meta http-equiv="refresh" content="180" />
</head>-
bugthefixer
- Forum Contributor
- Posts: 118
- Joined: Mon Mar 22, 2004 2:35 am
The only way I've found to elmininate this problem is to have the script that receives the POST data not respond directly to the browser.. I have the script do it's work and then at the bottom it sends a header("location...") to the browser.bugthefixer wrote:but i get this information.
Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you.
To resubmit your information and view this Web page, click the Refresh button.
and it happens due to sessions
Kinda hard to explain.
1. enter page via GET: build page
2. enter page via POST: make db changes, then do a header back to php_self
this seems to break the POST/response and get rid of the browser refresh issue.