Forum Moderators: coopster

Message Too Old, No Replies

Can JS access PHP's session data?

         

ahmedtheking

11:56 pm on Jan 24, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is it possible to access PHP's session data with JS much like you would with cookies?

Cookies are just turning to be a pain in the bum when it comes to removing them and stuff; such a pain!

mcavic

2:52 am on Jan 25, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The session data should be stored privately by PHP. However, JS can send data to PHP through GET or POST forms, and PHP can of course send data to JS. So you should be able to accomplish what you want.