473,549 Members | 2,565 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Phantom Session Variables

Ben
Hello,

My $_SESSION variables disappear and reappear. It's not just
a matter of not caching the page. I usually have to press the Refresh
button about 3 times to get the page to remember the variables. Sometimes
refreshing again will cause the variables to disappear again. PHPSESSID
will often be empty after using session_start() .
Any ideas on how to limit this action?

Thanks, Ben
Jul 17 '05 #1
5 2563
Ben
This is interesting. According to phpinfo, 'session.save_p ath' =
'/nfs/php-sessions' . According to php, the directory '/nfs/php-sessions'
doesn't exist. Could this have something to do with it?

Hello,

My $_SESSION variables disappear and reappear. It's not just
a matter of not caching the page. I usually have to press the Refresh
button about 3 times to get the page to remember the variables. Sometimes
refreshing again will cause the variables to disappear again. PHPSESSID
will often be empty after using session_start() .
Any ideas on how to limit this action?

Thanks, Ben

Jul 17 '05 #2
Ben
Turns out it's not just the session variables. No pHp scripts run
consistently. When I press refresh, sometimes a directory will exist and
sometimes it won't. Something is screwy. Is it the server or pHp setup?

Hello,

My $_SESSION variables disappear and reappear. It's not just
a matter of not caching the page. I usually have to press the Refresh
button about 3 times to get the page to remember the variables. Sometimes
refreshing again will cause the variables to disappear again. PHPSESSID
will often be empty after using session_start() .
Any ideas on how to limit this action?

Thanks, Ben

Jul 17 '05 #3
Ben wrote:
Turns out it's not just the session variables. No pHp scripts run
consistently. When I press refresh, sometimes a directory will exist and
sometimes it won't. Something is screwy. Is it the server or pHp setup?
Hello,

My $_SESSION variables disappear and reappear. It's not just
a matter of not caching the page. I usually have to press the Refresh
button about 3 times to get the page to remember the variables. Sometimes
refreshing again will cause the variables to disappear again. PHPSESSID
will often be empty after using session_start() .
Any ideas on how to limit this action?

Thanks, Ben


Post the exact code, if you want me to try to run it on my server.
Jul 17 '05 #4
[Top-post fixed]

"Ben" <be*@pyramidlab el.com> wrote in message news:<6d******* ***********@typ hoon.sonic.net> ...
Hello,

My $_SESSION variables disappear and reappear. It's not just
a matter of not caching the page. I usually have to press the Refresh
button about 3 times to get the page to remember the variables. Sometimes
refreshing again will cause the variables to disappear again. PHPSESSID
will often be empty after using session_start() .
Any ideas on how to limit this action?

Turns out it's not just the session variables. No pHp scripts run
consistently. When I press refresh, sometimes a directory will exist and
sometimes it won't. Something is screwy. Is it the server or pHp setup?


Might be server. Is it a production environment or dev?

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/
Jul 17 '05 #5
In article <6d************ ******@typhoon. sonic.net>,
be*@pyramidlabe l.com says...
Turns out it's not just the session variables. No pHp scripts run
consistently. When I press refresh, sometimes a directory will exist and
sometimes it won't. Something is screwy. Is it the server or pHp setup?

Hello,

My $_SESSION variables disappear and reappear. It's not just
a matter of not caching the page. I usually have to press the Refresh
button about 3 times to get the page to remember the variables. Sometimes
refreshing again will cause the variables to disappear again. PHPSESSID
will often be empty after using session_start() .
Any ideas on how to limit this action?

Thanks, Ben


I had similar access problems once.
Check the PHP GroupID and UserID security check settings in php.ini.

Turn them off and test the scripts.

Not failing? Check the PHP user/group has _ownership_ and read/write of
the session directory.

If PHP doesn't have security access to read or write a directory it can
sometimes fail quietly. @include hides errors and 'critial only' error
reporting also can hide fatal problems.

--
AJ
Treehouse Networks abuse@
www.treenetnz.com
Jul 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
2373
by: Al Jones | last post by:
This is a repost form the vbscript newgroup - if this isn't the appropriate group would you point me toward one that is. Basically, I seem to be losing session data part way though preparing an email from (possibly) three seperate forms. the following code is the end of a routine which stashes data from the first form off to session...
0
1274
by: omyek | last post by:
I'm essentially trying to do what a lot of users seem to want when using the above classes, and that's POST to a webpage. Well, I'm golden when it comes to POSTing, I've been able to post to websites using both the webrequest/response and webclient methods. However, the problem I'm running into with both options is I seem to "lose" my...
6
656
by: Lina Manjarres | last post by:
Hello, I have a session variable in a login page. Then I go to a form page where I uses the ProfileID and the UserID. Then I go to a result page where I would like to use the UserID as a filter, but I can't get the value is stored in it. How can I do that? Thanks a lot!
4
5577
by: PJ | last post by:
A particular page seems to be having issues with correctly setting Session variables. I am setting a couple of session variables on the Page_Unload event. While stepping through code, the immediate window will show the values in Session after the relevant lines that set the variables in the Page_Unload event. However, on postback, these...
6
1793
by: tfs | last post by:
My program seems to be coming up with a phantom folder. The folder doesn't show up until I do my login page from my forms authentication web.config setup. Before I get the login pages all my paths look correct. For example: http://192.168.122.55/contour/VDW/default.asp After I go the login page the same page looks like this:
10
3489
by: tshad | last post by:
I have been using the default session state (InProc) and have found that I have been loosing my information after a period of time (normally 20 minutes). Is there anyway to find out how much more time I have on a session? If I do a refresh, does reset the session clock? Do you have have to go to another page to reset the session timeout...
3
2893
by: Alan Wang | last post by:
Hi there, Once my application gets complicated and complicated. I found it's really hard to keep track of Session value I am using in my asp.net application. I am just wondering if anyone have any experience on how to keep track of session value. Any help it's appreciated. Thanks Alan
18
3416
by: BillE | last post by:
When a user opens a new IE browser window using File-New-Window the integrity of an application which relies on session state is COMPLETELY undermined. Anyone who overlooks the fact that File-New-Window creates an instance of IE in the same process with the same SessionID as the parent window is in big trouble. This fundamentally restricts...
26
3585
by: BillE | last post by:
Some ASP.NET applications use Session Variables extensively to maintain state. These should be re-written to use viewstate, hidden fields, querystring, etc. instead. This is because if a user opens a new IE window with Ctrl-N or File-New-Window, BOTH WINDOWS SHARE THE SAME SESSION VARIABLES. This cannot be prevented.
0
7542
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7982
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7827
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6066
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5385
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3514
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3494
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1961
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1079
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.