473,734 Members | 2,724 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Disappearing session variables

I'm trying to track down an annoying problem that only occurs when I
access my pages on a remote server using IE6. If I run instead run
from localhost, IE6 works fine, and if I use another browser on the
remote site, there are no problems.

I'm not really looking for help debugging. I'd just like to be pointed
in the right direction.

Essentially, what happens is this. When I start up (i.e. load
index.php on my site), I am logged out. When I log in, I go to
logincheck.php, which validates the login and transfers control back
to index.php with a few session variables set to indicate that I am
logged in. Up to here, everything works with all browsers and
locations. Next, I execute a database search, which goes to
searchresults.p hp to do the actual work, stuffs the results into
session variables, and returns to index.php. When I do this on the
remote site using IE6, the session variables set by the search are
present, but the login variables have been lost, so that I appear to
be once again logged out.

I've tried with both register_global s = On and register_global s = Off
with no change of behavior.

Does anyone have a clue what could be happening to cause this? For the
record, there are differences between localhost and the remote site.
I'm running PHP 5.2.3 locally, but the remote version is 5.0.5. There
may be other relevant differences as well.
Aug 3 '08
24 4096
On Aug 6, 1:20*am, Pink Pig <b...@grandcent ralapartments.c omwrote:
It's unrelated to my real problem, anyway.
Let me repeat that: IT'S UNRELATED To MY REAL PROBLEM, ANYWAY. I don't
care about browser detection. I can detect browsers well enough for
the time being. What I want to know is why IE rejects session cookies
sometimes, and what can I do about it. Sheesh.
Aug 8 '08 #21
Is it fair to assume that nobody with any knowledge of the internal
working of either PHP or IE ever reads the messages in this group?

Aug 8 '08 #22
Pink Pig wrote:
Is it fair to assume that nobody with any knowledge of the internal
working of either PHP or IE ever reads the messages in this group?
fairly fair.

If you are lucky a real programmer will be stuck with a half hour
compile on something and wander in: otherwise you are stuck with Stuckle.

Whose generic perm one from four responses are

- try googling
- try asking in the right NG
- try turning error reporting on.
- RTFM

And if those don't send you packing, will turn the conversation around
to one of the few things he does know about.
Aug 8 '08 #23
Pink Pig wrote:
Is it fair to assume that nobody with any knowledge of the internal
working of either PHP or IE ever reads the messages in this group?

I don't think anyone outside of Microsoft knows how IE works internally.
And you don't need to know the inner workings of PHP.

So your problem looks like the session cookie is not being sent from IE
to the server. You can verify this with an IP trace, if you need to.
But that's going a ways.

What do you have for the following in your php.ini file:

session.use_coo kies
session.use_onl y_cookies
session.name
session.auto_st art
session.cookie_ lifetime
session.cookie_ path
session.cookie_ domain
session.use_tra ns_sid

Also, what are your privacy settings in IE for internet sites - are you
using one of the standard settings, or a custom one?

P.S. If you're not sure which php.ini file you are using, php_info()
will show you which it is, as well as the settings for all of the above.

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===

Aug 9 '08 #24
Geoff Berrow 提到:
Message-ID:
<08************ *************** *******@m44g200 0hsc.googlegrou ps.comfrom
The Hajj contained the following:
>might have found a solution
http://genotrance.wordpress.com/2006...rnet-explorer/


Some good stuff there. The underscore thing is a bit of a surprise.
IT manager 蛇***眼edm und yau (email擬似ya* *****@hotmail.c om)
全香港最濺 IT Manager, 見*著西裝 返工. 著得好過佢 就問**竟 點諗, *小人,
痴撚線
5:00pm俾個job *做, 跟住就自己 做到11點搞 佢, 第2日就小 *, 話*搞唔掂 , 唔
撚洗放工呀

最撚柒就係 呢條友啦, 搞個爛網出 黎, 大家去睇下 :
網址擬似www.funzy.com

有幾爛? 仆街, 用IE6開會* 機架, 真係唔撚知 用乜野skill 以寫撚到h ang機.

成條team朝9 10, 搞個爛網得 個2個function 仔, 唔係hang機 係*link, 仲話寫
web要都唔知 乜撚野skill set, 食屎啦, 小*生寫個 web都唔撚會 hang機啦

個個同事想 放工都要驚 呢樣驚個樣 , *張*o的 春濺賣就 撚好叫人 齊同*濺
賣, 人地都有屋 企, *唔撚放工 就*o既事, 除撚左打工 都唔撚知搞 個web未, 屎坑關刀

大家多多張 呢個網發佈 出去, 聲討呢種小 人

Counter
1
Aug 12 '08 #25

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

Similar topics

9
3331
by: Larry Woods | last post by:
I have a site that works fine for days, then suddenly, I start getting ASP 0115 errors with an indication that session variables IN SEPARATE SESSIONS have disappeared! First, for background information, I have a customized 500-100 page that sends the value of various session variables via email to my support site. The situation: On the home page of the site, the FIRST THING that is done is a Session
14
3234
by: Paul Yanzick | last post by:
Hello, I am trying to develop a book tracking application for my capstone in school, and am running into a problem. The application is an ASP.Net application written in C#. The first page you go to is a login form, which will set several session variables with the name used to log in, appropriate security level and some other misc variables, and then will go to a main menu for each particular security level using Server.Transfer. ...
1
2100
by: Wiktor Zychla | last post by:
Hello there, I've just encountered a strange problem with Session. In one particular scenario it is cleared between pages but the scenario is so specific that I am really, really startled. I've tried to look for similar situations in the group archive and it seems that few people have observed similar behaviour. None of them, however, got a clear explanation that would correspond to my problem. In my web application I put some...
6
3779
by: ChrisAtWokingham | last post by:
I have been struggling with unexpected error messages on an ASP.NET system, using SQL and C#. The application draws organisation charts, based on data stored in the SQL database. Some of the chart editing processes place a very heavy load on the server as the effects of the edit ripple through the organisation structure, requiring potentially large numbers of rows in one of the tables to be updated. (I have done it this way to make the more...
0
9449
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9236
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8186
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 projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6735
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6031
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4550
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4809
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3261
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
2
2724
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.