Re: Loosing redirect in if...else
| From: | Jason Wong | Date: | Thu, 11 Mar 2004 17:18:46 +0000 |
| Subject: | Re: Loosing redirect in if...else | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-180191@lists.php.net to get a copy of this message | ||
On Friday 12 March 2004 00:15, Alex Hogan wrote:
> case 1:
>
> if(empty($_SESSION['sellocation'])){
>
> $_SESSION['selloction'] = '0';
1) Are you sure you don't have a typo above?
> redirect('cf_survey.php?cf=0');
If you want to set a session variable (and keep it set) when you do a redirect
you need to the close the session first.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Don't let your mind wander -- it's too little to be let out alone.
*/