Sunday, May 12, 2024
 Popular · Latest · Hot · Upcoming
50
rated 0 times [  56] [ 6]  / answers: 1 / hits: 103013  / 15 Years ago, thu, april 16, 2009, 12:00:00

Is it possible to read a session value with Javascript?



For example, if I assigned a value into a session in PHP:



$_SESSION['msg'] = ABC Message;


Is it possible to read $_SESSION['msg'] with Javascript?


More From » php

 Answers
8

$_SESSION is a server-side construct. You would need to store that variable in $_COOKIE to be able to access it client-side.


[#99696] Thursday, April 9, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
marques

Total Points: 366
Total Questions: 108
Total Answers: 111

Location: Burundi
Member since Wed, Nov 25, 2020
4 Years ago
marques questions
;