User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 426,474 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,263 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 699 | Replies: 3
Reply
Join Date: Jul 2007
Posts: 4
Reputation: RobLamb is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
RobLamb RobLamb is offline Offline
Newbie Poster

Email addrress in Sessions

  #1  
Jul 9th, 2007
Hi
I have a problem with a site I am doing. I am writing an email address as a session variable and on my dev machine (windows XP running EasyPHP) I am having no problems calling up user information based on this. BUT when I put it on the live server (Dont know what OS etc) The information is not being retrieved. I am NOT a PHP guru! WHAT CAN THE ISSUE BE PLEASE!! Any help would be appreciated.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Sep 2006
Posts: 162
Reputation: Cerberus is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 14
Cerberus Cerberus is offline Offline
Junior Poster

Re: Email addrress in Sessions

  #2  
Jul 9th, 2007
I would guess that the Session variable hasn't been configured on the server. But it's just a guess.
Reply With Quote  
Join Date: Jul 2007
Posts: 4
Reputation: RobLamb is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
RobLamb RobLamb is offline Offline
Newbie Poster

Re: Email addrress in Sessions

  #3  
Jul 9th, 2007
It is, when the user logs in, I write their mail address in using the session name: as in welcome WhoEver. but when I try and use this to retrieve any data from the MySql DB the hidden fields I am using and trying to write the Session to are blank!?
Reply With Quote  
Join Date: Jun 2007
Location: Washington State
Posts: 53
Reputation: SStedman is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
SStedman SStedman is offline Offline
Junior Poster in Training

Re: Email addrress in Sessions

  #4  
Jul 18th, 2007
My suggestion is to give up on the php session variables.

Just create a sessions table in your database and then store the key to this session in a cookie or in a form variable.

This way when your system grows and you end up in a load balanced web farm, you will still have this centralized session concept.

This will also eliminate any configuration issues around php sessions variables.
Steve Stedman - Software Development Professional
Please
Visit My Website
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb PHP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the PHP Forum

All times are GMT -4. The time now is 3:58 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC