Reply to Re: Session ID changed everytime go to new page or reload.

Your name:

Reply:


Posted by Jerry Stuckle on 04/10/07 12:39

Bocah Sableng wrote:
> On Apr 9, 7:52 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>> What's in your Apache error log (or where ever you have your PHP errors
>> being logged)?
>>
>
> Thanks for you response.
>
> There's no line indicating any error on my Apache error log, and the
> PHP errors are not logged.
>
> The php code I posted before seems normally executed. Here is a snip
> from my Apache access log (and repeated several times) :
> 192.168.1.90 - - [09/Apr/2007:11:54:17 +0700] "GET /session_id.php
> HTTP/1.1" 200 330
>
> I don't know the mechanisms of session id generation. 'Cos when I move
> the new virtual host at the top and accessed using its local IP
> address (192.168.1.90), the problem disappears. But when accessed
> using named vhost (even if the new vhost config at the top), the
> problem still remain.
> Should I post the vhost config? (This group is php newsgroup)
>
> And another info:
> I use 'register_globals=on' and also 'register_long_arrays=on' for
> backward compatibility with my ancient scripts. I know it's a bad
> habit, but I use the application and the server both for intranet app
> only and I don't have much time to fix all.
>
> Thanks.
>

And one other thing - you are calling session_start() before ANY output
(even whitespace, DOCTYPE, etc.) in every page you need it, aren't you?

Again - I suspect you are - but sometimes the obvious gets overlooked. :-)


--
==================
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

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