Jump to content

[SOLVED] session problem


asmith

Recommended Posts

hey guys

 

i tried to assign a numeric key to a session :

 

$_SESSION[45] = "yes"; 

 

it is wierd , on my site i did , it do not work , i changed that to :

 

$_SESSION[t45] = "yes"; 

 

it worked.  (i put a print_r of session to see its there or not)

 

i was surprized , and opened a note pad and did :

 

<?php
$_SESSION[45] = "yes";
?>

 

and got a print_r, and it accepted the numeric key . 

 

what's wrong with my site that do not accept numeric keys for session ?

 

anyone had the same experience?

Link to comment
https://forums.phpfreaks.com/topic/86423-solved-session-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.