Hi,
How can i use jquery to check if session exist? this is the scenario,
I want to put this line "<div id="something">blahblah</div>" at the bottom part of my html when there is no session yet or sessions are not set like the session for the username and password. I'm using php.
jquery session check
Page 1 of 11 Replies - 6780 Views - Last Post: 28 February 2011 - 07:26 AM
Replies To: jquery session check
#2
Re: jquery session check
Posted 28 February 2011 - 07:26 AM
You can just check for existence of PHPSESSID, but this won't tell you if it's a valid session or not.. You can't see the values of the session via Javascript, they're server-side only so this could only be done with AJAX or by echoing out your Javascript from PHP based on a condition.
This post has been edited by RudiVisser: 28 February 2011 - 07:27 AM
Page 1 of 1

New Topic/Question
Reply



MultiQuote



|