473,398 Members | 2,212 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

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 2555
Ben
This is interesting. According to phpinfo, 'session.save_path' =
'/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*@pyramidlabel.com> wrote in message news:<6d******************@typhoon.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*@pyramidlabel.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
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...
0
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...
6
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,...
4
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...
6
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...
10
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...
3
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...
18
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...
26
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.