Re: session ok? [SOLVED]
| From: | Daniel Brown | Date: | Mon, 21 Jul 2008 15:23:25 +0000 |
| Subject: | Re: session ok? [SOLVED] | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-277147@lists.php.net to get a copy of this message | ||
On Mon, Jul 21, 2008 at 11:11 AM, tedd <tedd.sperling@gmail.com> wrote:
>
> That's the way it works PROVIDED that you do not use the following in your
> code:
>
> header('Location:
> http://www.yourdomain.com/whatever/index.php');
Was this line of code included in a script access at
http://www.yourdomain.com/whatever/?
If it wasn't HTTP (vs HTTPS), in the /whatever directory, under
the www. CNAME, then the cookie would be invalid. If it WAS still
adhering to all of the same, did you use session_write_close() to save
the session data to disk before redirecting?
If all else fails, be sure to read through the user notes on the
manual pages. For example, session_start() has a bunch of manual
entries with the term 'location' that discuss quite similar issues,
including resolutions. Note that if they don't contain suggestions
and/or resolutions, we delete them, to make sure that the user notes
are as concise and helpful as possible. Felepe (Pena) and I deleted
or modified over 700 of them in the last two days alone.
Check out the user notes on session_start() here:
http://www.php.net/manual/en/function.session-start.php
--
</Daniel P. Brown>
Better prices on dedicated servers:
Intel 2.4GHz/60GB/512MB/2TB $49.99/mo.
Intel 3.06GHz/80GB/1GB/2TB $59.99/mo.
Dedicated servers, VPS, and hosting from $2.50/mo.