|
Posted by Jerry Stuckle on 11/18/06 18:59
Maximus wrote:
> Lately, i installed WAMP server on my pc, and started coding as always.
>
> Today, I noticed that sessions started going weird.
>
> I declare a session in page1 for example, I echo it in page2 after a
> form submission ... al goes fine ... then click a link on page2 leading
> to page 3 ..... the session is no longer valid.
>
> echoing the session gives NULL
>
>
> What's wring? any help?
> I am using session_start(); in all 3 pages.
>
Are you calling session_start before ANYTHING is sent to the client?
This can include any DOCTYPE, etc. statements, or even white space.
What happens if you add the following two statements right at the
beginning of your file (before the session_start() call)?
error_reporting(E_ALL);
ini_set("display_errors","1");
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|