faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

7 of 15 people (47%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

Why cant I get my session..the session is there but the browser dont collect it!

Mar 1st, 2009 08:54
Sarah Turner, healthy man, dman, Ayse Geertsma, Martin Eriksson, http://www.ttnr.org


Some hints (the cause-and-effect are not clear so just 'some hints'). I 
assume you are using PHP4.
- Remember that the sessionvars are available NEXT timeyou enter the 
session. You can go to a next page using the command: header
('location:nextpage.php');
- You should always start the session before any header is sent. You 
should get a warning so perhaps the warnings are disabled
- Always send the session-id unless you check for cookies. If the 
client has cookies disabled the session-id isn't sent. Perhaps the use 
of session-id by cookies is disabled in your php.ini! Try sending it in 
the URL like in 'nextpage.php?session_id=whatever'. There's a built-in 
variable that does this for you.
http://www.healthdothealth.com
http://www.healthxhealth.com
http://www.mesotheliomainmesothelioma.com
http://www.healthfirewall.com
http://www.flathealth.com
http://www.healthbodyguard.com
http://voyagevacances.blogtact.com/
http://rejseferie.blogtact.com/
http://flyvningertilschweiz.blogtact.com/
http://volssuisse.blogtact.com/
http://volsromeitalie.blogtact.com/
http://viajesvacaciones.blogtact.com/
http://reisenchina.blogtact.com/
http://flugeschweiz.blogtact.com/
http://resasemester.blogtact.com/
http://viaggivacanze.blogtact.com/
http://reisenurlaub.blogtact.com/
http://reizenvakanties.blogtact.com/
http://volisvizzera.blogtact.com/
http://gartenpflege.blogtact.com/
http://geschenkideeen.blogtact.com/
http://vluchtenromeitalie.blogtact.com/