[PHP] javascript cookie dissapears when adding session_start()

2013-03-20 Thread Norah Jones
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



Re: [PHP] javascript cookie dissapears when adding session_start()

2013-03-20 Thread ma...@behnke.biz
Please re-send the link for your code.

 Norah Jones nh.jone...@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: ma...@behnke.biz

Softwaretechnik Behnke
Heinrich-Heine-Str. 7D
21218 Seevetal

http://www.behnke.biz

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php