473,800 Members | 2,614 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Strange problem: Sessions resetting using SSL, Apache 2.0.4x, PHP 4.x.x and RedHat 9.0


I'm running Apache 2.0.47, PHP 4.3.3 on RedHat 9.0 on a new server.

I have a series of pages that let's say pages 1 -> 3 are non-ssl and 4-8 are
SSL but the URL domain is different (shared SSL).
The client clicks through them from one to another in order using forms and
URLs with GET vars.

The client starts a non-ssl session on pg. 1 using www.mydomain.com. When they
get to
pg. 3, a hyperlink with an SSL URL and session ID as a GET var, they click on
it to get to pg 4 which is now
under https://secure
..hostingdomain .com/mydomain.com/pg4.php?PHPSESS IONID=kjsfhljdh fakdjhfladkfh
PHP picks up all the session vars just fine. The person proceeds to pg. 5, then
6, then 7 all in order under
the SSL URL given above except the session ID attached which was only present
on the switch between
pg. 3 and 4.

When they click on to go to pg. 8, the session is gone as well as all the
session vars. Yes I do have a session_start
on every page. It seems that the previous session just disappears or resets.

Now this series of pages works fine under Apache 1.3.28, PHP 4.3.3, and RH 7.3
on a different server. So
there is nothing wrong with the coding since all I did was copy the pages to
the new server.

On the new server, I have trans_sid turned on. Cookies are also turned on and
"cookies_on ly" is off.
The PHP settings on both servers are identical. I was originally running Apache
2.0.40 which is what RH 9.0
came with out of the box. But the sessions disppeared earlier in the sequence
using it. The session would
disappear by pg. 6 or 7.

When I turn off the use of cookies in PHP, the session doesn't seem to carry
through at all. But I'm not
100% sure since I can't remember what exactly happened in this scenario.

Some people say that Apache 2.0 and PHP 4.x.x run fine, but that is not what
I'm seeing. I'm thinking of
going to Apache 1.3.28 on the new server.

Anybody else have any clues as to what is going on?

TIA.

Alex

Jul 17 '05 #1
0 2148

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

Similar topics

2
2820
by: dmcconkey | last post by:
Hi folks, I have two PHP questions concerning objects stored in sessions. I'm developing an intranet for a client to be run in a Redhat 8/Apapche 2/PHP 4/MySQL environment. All pages are password protected and I get to choose how to authenticate and layer permissions. My first thought to this affect is to use the User table of the mysql database to maintain site users rather than create a redundant users
1
2916
by: J Peaks | last post by:
All, We are soon to be hosting a very important system but are currently having some problems with setting this up on our Redhat Linux environment. We are running the following: Redhat 9 (all updated using up2date) kernel 2.4.20-20.9 Apache 2 (specifically 2.0.40-21.5, the current default for Redhat 9) Tomcat 4 (I do not know exactly which version, this has been installed on
2
5888
by: bouchia.nazha | last post by:
Hello I have encountered a problem using tomcat, linux and ssl. My problem seem to be a JVM memory deallocation problem on Linux. This is my configuration: OS: Redhat7.2 Tomcat: 4.0 Jdk: 1.3.1_07
3
2828
by: Gary | last post by:
I am having a strange problem that I cannot solve. I have an asp page that I use for a user to login and gain access to other pages. When the user logs in I set a couple of session variables like Session("UserType") = "Sales". Then based on the Session("UserType") I use response.redirect to take the user to a specific page. The logic and response.redirect works fine on a Win2k server but when I move the page to a server running Win2003 the...
0
2947
by: Steve | last post by:
Hi, Yesterday I signed up for another dedicated linux server with the hosting company I use and I am having problems getting MySQL 4.1.3 working on it. I've tried just about everything I can think of to login via the MySQL client but get a variation of the following error every time: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
14
3553
by: Richard Welty | last post by:
ok, i'm confused. i have two systems. one is redhat 7.1 (a server in colo, reasonably current), the other is 8.0 (my laptop). the server in colo is running postgresql 7.3.2 along with redhat's updated versions of apache and php for 7.1 (the php version is 4.1.2) on this server, php can access postgres without difficulty. my laptop is also running 7.3.2 along with the apache and php that go with RH 8.0. i found a need to bring up...
17
5218
by: jensen bredal | last post by:
Hello, i'm struggling with a somehow badly understood session scenario. I provide acces to my pages based on form authentication using Session cookies. Som of my pages are supposed to be running continuously and refreshing once an hour. I there set timeout= 61 in <sessionState section and on my page it says <meta http-equiv="refresh" content="3600">. I also set timeout=120 in the <forms section of web.config to make sure
4
4084
by: Ian Davies | last post by:
Hello I am struggling for a solution to clear some fields on my webpage that takes their values from some sessions My solution below works when the button is clicked twice. I sort of know why I have to click it twice to do the job (the first submit resets the sessions but this it too late to change the field values, which requires another submit to pick up the new session values). Problem is I cant think how to accomplish the resetting of...
3
4136
by: John Murtari | last post by:
Folks, Trying to build php 4.4.6 and apache 1.3.37 on RHEL 4. Each of them builds and installs okay, but when we start apache we get: Syntax error on line 238 of /usr/local/etc/httpd/conf/httpd.conf: API module structure `php4_module' in file /usr/local/etc/httpd/libexec/libphp4.so is garbled - perhaps this is not an Apache module DSO?
0
9691
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10507
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...
0
10279
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9092
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7582
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
6815
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
5473
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
5607
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2948
bsmnconsultancy
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...

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.