Current location: Hot Scripts Forums » General Web Coding » HTML/XHTML/XML » PHP sessions


PHP sessions

Reply
  #1 (permalink)  
Old 11-25-03, 07:18 PM
mno's Avatar
mno mno is offline
New Member
 
Join Date: Nov 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Angry PHP sessions

Hi all,

I'm having problems with using sessions in PHP. My problem is that once I create a session variable, no matter what it's name is, I can no longer access POST variables or REQUEST variables using just their name. This worked perfectly before I started creating SESSION variables. Any clue as to why this could be happening? I have register_globals turned ON.

Thanks,
Max
Reply With Quote
  #2 (permalink)  
Old 11-25-03, 07:24 PM
mno's Avatar
mno mno is offline
New Member
 
Join Date: Nov 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Sorry, I don't know how I accidentally posted this in the wrong Forum. Mods, please move...
Reply With Quote
  #3 (permalink)  
Old 11-28-03, 12:26 PM
Acecool's Avatar
Acecool Acecool is offline
Aspiring Coder
 
Join Date: Nov 2003
Posts: 506
Thanks: 0
Thanked 0 Times in 0 Posts
Are you sure the form etc is all working?

Make your form submit here:
<form method="post" action="http://www.acecoolco.com/tool_request_tester.php">
Reply With Quote
  #4 (permalink)  
Old 11-28-03, 12:49 PM
nefariousphp nefariousphp is offline
Banned
 
Join Date: Aug 2003
Posts: 129
Thanks: 0
Thanked 0 Times in 0 Posts
You shouldn't use post names as the same name as your sessions, thats just going to make things confusing. I suggest putting a prefix like "sess_variable" in your sessions. This organizes the coding too..
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP and MySQL ? rob2132 Hot Scripts Forum Questions, Suggestions and Feedback 4 08-29-08 02:22 AM
Realtime PHP Code Obfuscation barrywien General Advertisements 1 11-16-03 06:50 PM
How to convert php generated pages to SE friendly HTML or PHP(SE friendly) -CLASS 101 crippled PHP 1 11-16-03 06:37 AM
PHP & sessions, why won't it work? TinnyFusion PHP 1 10-04-03 01:51 PM
php sessions burningr PHP 22 06-12-03 07:07 AM


All times are GMT -5. The time now is 08:56 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.