Reply to Re: Session Problems

Your name:

Reply:


Posted by Jerry Stuckle on 11/18/06 20:40

Maximus wrote:
> The same script thats working fine online on link:
> http://www.tam-sms.com is not working on my wamp server locally.
>
> I think there's a problem with the php.ini file installed by WAMP5
> server.
> Jerry Stuckle wrote:
>
>>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
>>==================
>
>

If that were the case I wouldn't expect it to work at all.

What happens if you do a

echo "<pre>\n";
print_r($_SESSION);
echo "</pre>\n";

And what happens if you use the code I sent you earlier?

What's the actual failing code?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация