#15978 [Com]: Losing fields values after opening a new window
| From: | christos dot e at cytanet dot com dot cy | Date: | Sat, 16 Nov 2002 23:34:07 +0000 |
| Subject: | #15978 [Com]: Losing fields values after opening a new window | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-25075@lists.php.net to get a copy of this message | ||
ID: 15978
Comment by: christos.e@cytanet.com.cy
Reported By: crikou@xsilence.net
Status: Bogus
Bug Type: Session related
Operating System: WIN 2K
PHP Version: 4.0.6
New Comment:
I have exactly the same problem.
I am using the phakt 1.3 extension to build a PHP site with UltraDev
(www.interakt.ro). My site restricts access to users according to their
access level.
I have a menu in my main page which has links to several other pages.
When a user clicks on a link, a new window opens (target="_blank") with
the linked page.
The 'Restrict Access to Page' server behavior sometimes (almost half of
the times I tried it) denies access to a logged in, legitimate user,
while other times it works fine.
I did a little experiment: while having the page open, I modified the
code and removed the target="_blank" from the link. I refreshed the
page, and clicked it. And it worked. The linked page opened correctly -
but not in a new window of course.
Apparently the problem appears whenever a new browser window opens.
If the problem is browser-related, is there any way do you know of any
way it can be solved?
Thnx
Previous Comments:
------------------------------------------------------------------------
[2002-03-10 06:36:33] sander@php.net
This behaviour depends on your browser, not on PHP.
------------------------------------------------------------------------
[2002-03-09 19:43:34] crikou@xsilence.net
Really strange...I believe it is a session problem
(session_cache_limiter)
Here is the thing:
I'm using PHP4 sessions, and so have set the session_cache_limiter to
'private, must revalidate', to keep history.
I have a page A.PHP with form. This page calls B.php. After sending
datas from a.php to b.php and then hit the back button (to go back to
a.PHP), I found my formfields with values always here. OK. Everything
works fine.
But when I send datas from a.php to b.php ,and then, on b.php page, I
open a new window (with <A TARGET="_blank", or _new, or JS window.open,
or right-click open in a new window), and try to go back to a.php
again, then my fields are empty!!!!
Hu!
You can try on www.php.net, the problem is there too!
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15978&edit=1