My Server Enivronment:
MS Windows Server 2003
Standard Edition, Service Pack 1
(running as a VM on a Intel Xeon server)
IIS running on Port 80
Apache 2.0.63 running on port 8080
PHP 5.2.5
So I have a script that selects a bunch of records from a database,
each record displayed with a checkbox. I have a drop down menu that
says 'edit records' and 'delete records'. When the user selects 'edit
records' the values of the checkboxes are stored in a session array
and the user is redirected to another page to edit the records.
This part of the application works fine.
When the user selects 'delete records' the same things happens except
their directed to a different page. But when the user gets there, for
some reason, the data in the session array is gone.
I tried this script on my shared hosting (running Linux) and the
script worked fine.
I tried to use a javascript redirect instead of header() because I saw
that there was a problem with session variables using it back in PHP4,
but that didn't work.
I tried putting the 'delete recrods' code in the same page as the drop
down menu form, and it worked fine. So it's definitely an issue going
from page to page.
But the strangest thing about this, is that the session variables
aren't lost when I try to edit the records, only when I try to delete
records. In fact, another strange thing about this is that this script
worked fine for a while at first, then all of a sudden it stopped
working, like I had changed the code, but I hadn't.
I think it's a PHP bug, but PHP support won't acknowledge it as a bug,
and I can't change the server environment. 3 2340
Saint wrote:
My Server Enivronment:
MS Windows Server 2003
Standard Edition, Service Pack 1
(running as a VM on a Intel Xeon server)
IIS running on Port 80
Apache 2.0.63 running on port 8080
PHP 5.2.5
So I have a script that selects a bunch of records from a database,
each record displayed with a checkbox. I have a drop down menu that
says 'edit records' and 'delete records'. When the user selects 'edit
records' the values of the checkboxes are stored in a session array
and the user is redirected to another page to edit the records.
This part of the application works fine.
When the user selects 'delete records' the same things happens except
their directed to a different page. But when the user gets there, for
some reason, the data in the session array is gone.
I tried this script on my shared hosting (running Linux) and the
script worked fine.
I tried to use a javascript redirect instead of header() because I saw
that there was a problem with session variables using it back in PHP4,
but that didn't work.
I tried putting the 'delete recrods' code in the same page as the drop
down menu form, and it worked fine. So it's definitely an issue going
from page to page.
But the strangest thing about this, is that the session variables
aren't lost when I try to edit the records, only when I try to delete
records. In fact, another strange thing about this is that this script
worked fine for a while at first, then all of a sudden it stopped
working, like I had changed the code, but I hadn't.
I think it's a PHP bug, but PHP support won't acknowledge it as a bug,
and I can't change the server environment.
I doubt it's a PHP but. But you haven't posted your code, so we have no
idea what's happening.
--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. js*******@attgl obal.net
=============== ===
In article <21************ *************** *******@60g2000 hsy.googlegroup s.com>,
Saint <ia*******@gmai l.comwrote:
>My Server Enivronment:
MS Windows Server 2003 Standard Edition, Service Pack 1 (running as a VM on a Intel Xeon server)
IIS running on Port 80 Apache 2.0.63 running on port 8080 PHP 5.2.5
[snip]
I tried this script on my shared hosting (running Linux) and the script worked fine.
OK. Nothing wrong with your code or PHP, then.
>But the strangest thing about this, is that the session variables aren't lost when I try to edit the records, only when I try to delete records. In fact, another strange thing about this is that this script worked fine for a while at first, then all of a sudden it stopped working, like I had changed the code, but I hadn't.
I think it's a PHP bug, but PHP support won't acknowledge it as a bug, and I can't change the server environment.
Sounds to me like a server bug more than a PHP bug, especially since
it works fine under Linux.
I don't know if it will work, but it helped me to do the following at
the start of my code:
session_save_pa th($my_session_ path);
session_name('l ogin_settings') ; // or any other name you want
session_start() ;
if (session_id() == 'deleted') session_regener ate_id(true);
Mr. Stuckle may come along and argue that the above isn't necessary,
but that isn't true for everyone's case.
-A
Greetings, Saint.
In reply to Your message dated Friday, March 7, 2008, 23:11:19,
I restarted Apache when I turned error reporting on and it started
working again.
I guess the world will never know?
I think there may be some issues with Your browser.
And please, don't top-post.
--
Sincerely Yours, AnrDaemon <an*******@free mail.ru> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Pack Fan |
last post by:
I've noticed that session variables will persist on Mac IE even after all
browser windows have been closed. One must quit the program to clear the
session variables. This presents a security risk for my session variable
based security scheme.
Basically, the risk is that a user will login to my site, close the window
when done and allow someone else to come up to the machine, go back to my
site and be logged into the previous user's...
|
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 variables are no longer in
Session. All Session variables that were set previous to that particular...
|
by: Alexander Widera |
last post by:
hi,
who has seen the follow problem or could help please?
i visit a page .... i read a sesssion-var . ... everythink works...... i
visit the page again..... error ... the sessionvar is null .... i visit
again .... null ... again .... it works ..... again ... it works ... again
..... null....... and so on and on ....
it does randomly work or not....
what is this effect?
|
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 or will
a postback also do it? This is important as we have a few pages that a user
|
by: Tomas Martinez |
last post by:
Hi,
Well, my problem is so simple as it says in the subjet but very frustrating
also. I have a project and it is losing the session variables with each
postback, so I downloaded from the web a project which used a session
management dll to discover what was wrong in my project. This web project has
two pages, one send to the other a variable with session state and the other
changes this one, shown in a label, with each postback, well,...
| |
by: Simon |
last post by:
Hi all,
We have a small problem.
We are running an ASP.NET1.1 application, using IIS6 on server2003, no web
farm, on a single server, using in-proc session state, only using one worker
process.
The problem is that at seemingly random times, some of the session variables
return as if set to nothing.
|
by: Not Me |
last post by:
Hi,
I have a set of pages that use forms authentication for access. There
are times when one of the session objects I'm using appears to
disappear. The session is not timing out, however. (if I go to a page
that doesn't use that specific object it works fine and I'm not
redirected to the login page)
Apologies if I'm using the incorrect terminology.. the session object
I'm using is a class of my own, which features several private...
|
by: Aarchaic |
last post by:
Hello i have problem my session variables seem to disapear as i go along i've created this code to ilustrate whats happening
First off i just post 3 detials like a name a age and a favourite number.
that in turn goes to the next page where its being picked up by the php code and put into the Global Variable.
the page uses the variables with no problem and you can select a link to go onto the next page where the number is being...
|
by: K. A. |
last post by:
I have two servers at work, 'A' for testing and development, and
server 'B' for production.
On server A, I wrote a PHP test code to login users then direct them
to a personalized page. This is done in 3 steps:
Step 1. Normal http login page.
Step 2. A page called login.php that takes the posted username, stores
it as $_SESSION, and registers it
session_register("username"); user is taken to the personalized page
according to his username...
|
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 usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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...
| |
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |