LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-22-2006, 05:53 PM   #1
lemainer
LQ Newbie
 
Registered: Feb 2006
Posts: 1

Rep: Reputation: 0
passing $_SESSION parameters in PHP


I'm moving my existing php/mysql web application from one server (referred to as OLDSERVER) to a new server (referred to as NEWSERVER). After a user logs on to the system a session is created for that user. This session is then used to store information about the users process when navigating through the web application, to be able to pass this control information from one php script to the next. This applications works great on the OLDSERVER.

I've put together 2 very simple scripts to test this with. On the OLDSERVER they work just fine.

My problem is on the NEWSERVER.
I can see that after the first script runs, and puts some data in the generated session file. Which I examine via WS_ftpPro. This first script has a link to script 2, I then click on that link.

Script 2 is suppose to get data from the generated session file and display it on the web page. It doesn't. Again via WS-ftpPro I can see that the data is erased(cleared out of the session file).

These to very simple scripts work just fine on the OLDSERVER.

I've compared the php.ini file from the 2 servers and they are the same. I'm lost so can someone help me or at least tell me who to contact to get help?

Help,
Larry Mainer.
 
Old 02-22-2006, 06:50 PM   #2
xhi
Senior Member
 
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

Rep: Reputation: 45
sounds like it is almost definately a difference in configuration.. maybe in how php was installed? or even somthing else on the server.

did you check what phpinfo says for each of them..?

try to make a page on each server with this on it...
Code:
<?php phpinfo(); ?>
compare the session section on each..
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
passing parameters to network modules muru Linux - Networking 4 10-21-2005 10:44 AM
Passing parameters to a shell script neocookie Linux - General 5 10-20-2005 11:44 AM
Passing parameters to bash script Kamikazee Programming 4 10-01-2005 06:41 AM
Passing Parameters to Bash Script mooreted Linux - Software 3 04-05-2004 09:08 PM
PHP - passing multiple parameters jacksmash Programming 1 11-25-2003 10:56 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration