Re: Wizard and closing its window
| From: | Radu Filip | Date: | Mon, 11 Sep 2000 11:26:13 +0000 |
| Subject: | Re: Wizard and closing its window | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-16145@lists.php.net to get a copy of this message | ||
On Mon, 11 Sep 2000, Marko Vukovic' wrote:
> Do a session_start(); followed by a session_destroy(); on the first step.
> This will kill any existing session and a new one will be created on the first
> session_register();
This is not possible, since the user may have diffrent wizards (not the
same wizard twice, but diffrent wizards doing diffrent things -- but all
the wizards use the same wizard-module) and doing a session_destroy will
kill the others. Also, in my application I have another variables
registered that must exists during all application.
> You could also register a variable for each step eg. $step="1" etc... and if the user
> closes a window and then tries again,
> the script will do: if ($step != "") { session_destroy(); header ("Location:
> step1.php"); }
I think about that.
Thx,
Radu
--
Radu Filip
Network Administrator @CCTI | tuiasi.ro
radu@tuiasi.ro ccti@tuiasi.ro
http://socrate.tuiasi.ro/ http://www.ccti.tuiasi.ro/