Re: javascript cookie dissapears when adding session_start()
| From: | marco@behnke.biz | Date: | Wed, 20 Mar 2013 15:06:45 +0000 |
| Subject: | Re: javascript cookie dissapears when adding session_start() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-320660@lists.php.net to get a copy of this message | ||
Please re-send the link for your code.
> Norah Jones <nh.jones01@gmail.com> hat am 20. März 2013 um 15:19 geschrieben:
>
>
> I've been working on a PHP/Javascript Cookie Notify (Including multiple
> language support). Now I have one small problem, when session_start() is not
> at the top, the cookie message works as it should be.
> Now I am trying to add session_start(); at the top, as this will load the
> current language file the visitor has set it to. But then the cookie message
> will not show.
> I've cleaned all my cookies, and still can't get it to work ...
> I've put up a small code on jsFiddle, but when session_start(); is at the top,
> it launches correctly in jsFiddle. which can be viewed (here).
> Does anyone know what i'm doing wrong? And would you be able to explain me
> what I am doing wrong?
>
> Thanks
>
--
Marco Behnke
Dipl. Informatiker (FH), SAE Audio Engineer Diploma
Zend Certified Engineer PHP 5.3
Tel.: 0174 / 9722336
e-Mail: marco@behnke.biz
Softwaretechnik Behnke
Heinrich-Heine-Str. 7D
21218 Seevetal
http://www.behnke.biz