Re: Session Data

From: Date: Fri, 21 Mar 2003 17:19:19 +0000
Subject: Re: Session Data
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-140612@lists.php.net to get a copy of this message
If your session id is not stored in a cookie (if url rewriting is on), then the $url page may not be getting your session id, and thus is starting a new, empty one? Tony Bibbs wrote:
I'm wrapping up an MVC implementation for PHP. Everything is working splendidly except that redirects seem to be loosing session data. Here is the basic logic 1) on a form, user enters data hits submit 2) data validates OK, data is saved and $_SESSION['MVC_message'] is set to 'Save was successful' 3) After setting session data in step 2 above, a redirect is issued: header('Location: ' . $url); 4) The URL represented by $url within same app doesn't have any data in $_SESSION and I'm positive a session_destroy() isn't being called explicitly. The ideas here is to show a page with context information for the user. Any ideas why this isn't working?


« previous php.general (#140612) next »