Jump to content


Photo

*CLOSED* Double post - Please respond to easy question


  • This topic is locked This topic is locked
1 reply to this topic

#1 scs

scs
  • Members
  • PipPipPip
  • Advanced Member
  • 86 posts
  • LocationUSA

Posted 03 April 2006 - 05:19 PM

I use dreamweaver so my code is corrent. I'm just not using the right code. I have the session started. When the user logs in I set some session variables.

  $_SESSION['username'] = "sdgjksndgjsg";
  

Now my server uses php4. I'm not sure if that makes a difference. All those session variables are blank when I try to use them. Please respond quickly. I'm in a hurry to finish a project!

#2 jvrothjr

jvrothjr
  • Members
  • PipPipPip
  • Advanced Member
  • 300 posts
  • LocationOhio

Posted 03 April 2006 - 07:21 PM

<?php 
session_start();
session_register("User_ID");
?>
when you started your session did you register the variable name

<?php 
session_start();
?> 

second did you start every page with session_start();
If you understand everything you know nothing!

http://rcchjr.awardspace.com/




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users