|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-06-22 12:57 UTC] guo_feng at sina dot com
[2001-06-23 06:35 UTC] sniper@php.net
[2002-02-07 19:33 UTC] alindeman@php.net
[2002-02-07 22:41 UTC] shiflett@php.net
[2002-02-08 08:33 UTC] alindeman@php.net
[2002-08-13 23:13 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 19:00:02 2025 UTC |
<? //test1.php session_start(); $aaa="sfsdsdasdf"; $bbb="safsadfasdf"; session_register("aaa"); session_register("bbb"); ?> FORM METHOD=POST ACTION="test2.php"> <INPUT TYPE="text" NAME="a1"> <INPUT TYPE="text" NAME="a2"> <INPUT TYPE="submit"> </FORM> ?> /--------------------------------------- <? //test2.php session_start(); echo "aaa:".$aaa."<br>"; echo "bbb:".$bbb ?> <a href="javascript:window.history.back()">back</a> /--------------------------------------- When I set the session_cache_limiter = nocache ,that I submit my form ,and I can get the correct session. But when I click then back link ,I lost the data in the form . So I change the session_cache_limiter = private or public. That when I back I can got the data in the form. And I have a new problem,I need check the session in my program when the different user login(I check use status using session ) , When I login use different user ,the session I got is not correct. And I found I can't destroy the session.What shall I do? What is the different about nocache,private,public?