473,387 Members | 3,750 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,387 software developers and data experts.

HTTP HTTPS Session question

My Bluehost site is setup with a dedicated IP address, Rapid SSL
certificate, PHP 5 and FastCGI is set on.

When switching between HTTP and HTTPS I was under the impression the
Session Data was independent for each protocol and I've read about
various methods of storing session data in a database to bypass this
problem. However while testing what I thought was incomplete code (no
$_Session preservation code in place), I've discovered this is not true
on my site.

In other words I go from HTTP (request login), to HTTPS (do login and
set SESSION variables), then back to HTTP(to maintain data), the session
variables set in HTTPS are usable in HTTP and I get the exact same
session id with both protocols without any code to preserve the
$_SESSION data between protocols. While this may make my coding easier,
it gives me a sense that something is wrong and I have a security risk.
Can anyone confirm this is the way it's supposed to work?

Thank you
Oct 18 '07 #1
4 3137

"totalstranger" <to***********@not.yahoo.netwrote in message
news:4i***************@newsfe12.lga...
My Bluehost site is setup with a dedicated IP address, Rapid SSL
certificate, PHP 5 and FastCGI is set on.

When switching between HTTP and HTTPS I was under the impression the
Session Data was independent for each protocol and I've read about various
methods of storing session data in a database to bypass this problem.
However while testing what I thought was incomplete code (no $_Session
preservation code in place), I've discovered this is not true on my site.

In other words I go from HTTP (request login), to HTTPS (do login and set
SESSION variables), then back to HTTP(to maintain data), the session
variables set in HTTPS are usable in HTTP and I get the exact same session
id with both protocols without any code to preserve the $_SESSION data
between protocols. While this may make my coding easier, it gives me a
sense that something is wrong and I have a security risk. Can anyone
confirm this is the way it's supposed to work?
why is *any* of this a surprise OR security risk? ssl is means to secure the
communication between the client and server. sessions relate to either
cookies on the client or session files on your server. none of that has
*any* relation to secured sockets or not. your spidy senses are simply
whacked. why *should* this work any other way? are you suggesting that ssl
protects *you* from being hacked? that's not only a misconception, it's a
dangerous mentality.

sessions are hard to coordinate between *domains*...not HTTP&S.
Oct 19 '07 #2
On or about 10/19/2007 10:09 AM, it came to pass that Steve wrote:
"totalstranger" <to***********@not.yahoo.netwrote in message
news:4i***************@newsfe12.lga...
>My Bluehost site is setup with a dedicated IP address, Rapid SSL
certificate, PHP 5 and FastCGI is set on.

When switching between HTTP and HTTPS I was under the impression the
Session Data was independent for each protocol and I've read about various
methods of storing session data in a database to bypass this problem.
However while testing what I thought was incomplete code (no $_Session
preservation code in place), I've discovered this is not true on my site.

In other words I go from HTTP (request login), to HTTPS (do login and set
SESSION variables), then back to HTTP(to maintain data), the session
variables set in HTTPS are usable in HTTP and I get the exact same session
id with both protocols without any code to preserve the $_SESSION data
between protocols. While this may make my coding easier, it gives me a
sense that something is wrong and I have a security risk. Can anyone
confirm this is the way it's supposed to work?

why is *any* of this a surprise OR security risk? ssl is means to secure the
communication between the client and server. sessions relate to either
cookies on the client or session files on your server. none of that has
*any* relation to secured sockets or not. your spidy senses are simply
whacked. why *should* this work any other way? are you suggesting that ssl
protects *you* from being hacked? that's not only a misconception, it's a
dangerous mentality.

sessions are hard to coordinate between *domains*...not HTTP&S.

Wow! You must have born with a full insight to everything!
Oct 21 '07 #3
On or about 10/21/2007 4:15 PM, it came to pass that totalstranger wrote:
On or about 10/19/2007 10:09 AM, it came to pass that Steve wrote:
>"totalstranger" <to***********@not.yahoo.netwrote in message
news:4i***************@newsfe12.lga...
>>My Bluehost site is setup with a dedicated IP address, Rapid SSL
certificate, PHP 5 and FastCGI is set on.

When switching between HTTP and HTTPS I was under the impression the
Session Data was independent for each protocol and I've read about
various methods of storing session data in a database to bypass this
problem. However while testing what I thought was incomplete code (no
$_Session preservation code in place), I've discovered this is not
true on my site.

In other words I go from HTTP (request login), to HTTPS (do login and
set SESSION variables), then back to HTTP(to maintain data), the
session variables set in HTTPS are usable in HTTP and I get the exact
same session id with both protocols without any code to preserve the
$_SESSION data between protocols. While this may make my coding
easier, it gives me a sense that something is wrong and I have a
security risk. Can anyone confirm this is the way it's supposed to work?

why is *any* of this a surprise OR security risk? ssl is means to
secure the communication between the client and server. sessions
relate to either cookies on the client or session files on your
server. none of that has *any* relation to secured sockets or not.
your spidy senses are simply whacked. why *should* this work any other
way? are you suggesting that ssl protects *you* from being hacked?
that's not only a misconception, it's a dangerous mentality.

sessions are hard to coordinate between *domains*...not HTTP&S.
Wow! You must have born with a full insight to everything!
Umm before Steve objects to my English, that should have been
Wow! You must have been born with a full insight to everything!
Oct 21 '07 #4

"totalstranger" <to***********@not.yahoo.netwrote in message
news:Vt***************@newsfe12.lga...
On or about 10/21/2007 4:15 PM, it came to pass that totalstranger wrote:
>On or about 10/19/2007 10:09 AM, it came to pass that Steve wrote:
>>"totalstranger" <to***********@not.yahoo.netwrote in message
news:4i***************@newsfe12.lga...
My Bluehost site is setup with a dedicated IP address, Rapid SSL
certificate, PHP 5 and FastCGI is set on.

When switching between HTTP and HTTPS I was under the impression the
Session Data was independent for each protocol and I've read about
various methods of storing session data in a database to bypass this
problem. However while testing what I thought was incomplete code (no
$_Session preservation code in place), I've discovered this is not true
on my site.

In other words I go from HTTP (request login), to HTTPS (do login and
set SESSION variables), then back to HTTP(to maintain data), the
session variables set in HTTPS are usable in HTTP and I get the exact
same session id with both protocols without any code to preserve the
$_SESSION data between protocols. While this may make my coding easier,
it gives me a sense that something is wrong and I have a security risk.
Can anyone confirm this is the way it's supposed to work?

why is *any* of this a surprise OR security risk? ssl is means to secure
the communication between the client and server. sessions relate to
either cookies on the client or session files on your server. none of
that has *any* relation to secured sockets or not. your spidy senses are
simply whacked. why *should* this work any other way? are you suggesting
that ssl protects *you* from being hacked? that's not only a
misconception, it's a dangerous mentality.

sessions are hard to coordinate between *domains*...not HTTP&S.
Wow! You must have born with a full insight to everything!
Umm before Steve objects to my English, that should have been
Wow! You must have been born with a full insight to everything!
why no, i had no problems with your english and am usually pretty forgiving
when i know it's not someone's native language. and, i think i've only
teased one person about their english because i thought the comment would be
understood as a joke...it wasn't, so, i don't tend to tease anyone about
that anymore.

second, why were my comments taken in as an insult. notice, i wasn't YELLING
at any point. i used asterics to draw out certain key points i was trying to
make. a limitation of this media is that i cannot show inflection or
emphasis in very many ways.

third and most obvious to observe here, is that i *don't* know
everything...nor do i pretend to. i'll just simply take your reaction as a
"knee-jerk" comment at what you perceived was an insult.
Oct 22 '07 #5

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

Similar topics

8
by: NotGiven | last post by:
I need to verify if the page that led the user to this page used http or httpS. for example, if the use cam to my page from: httpS://www.dm.com/sample/foo.php I want to know as opposed to...
1
by: Kenneth Keeley | last post by:
Hi I wish to have a web site that has most of the pages as normal HTTP pages but has some areas that use HTTPS. I want to have it that if a user selects a link to a HTTPS page that they go there...
1
by: George | last post by:
if a URL is https://www.mysite.com/mypage.asp clients are redirected to http://www.mysite.com/mypage.asp This works fine for all but 1 client. He looses a session during the redirect....
6
by: Astra | last post by:
Hi All I've noticed on quite a few ASP sites that when they have a 'MyAccount' section they transfer the site to https and then when you have logged into your account successfully and gone back...
2
by: McKirahan | last post by:
I have an ASP site, an SSL certificate, and an {Order page}. I want to use "https" for the {Order page} and "http" for all others. Each page "includes" a common ".asp" file which detects the...
12
by: Grunff | last post by:
I'm experiencing an interesting problem with carrying a php session over from http to https. Much googling later, I'm still stuck. The application is an online shop, where some user data is...
1
by: Darren Clark | last post by:
I am just about to start work on the ecommerce section of our site and need some advise please Currently people are able to create a login to the site and they have lots of functionality that...
4
by: Chris Ashley | last post by:
Is it possible to persist viewstate information between HTTP and HTTPS (on the same page obviously)? Trying to get around writing some messy state transfer code... it doesn't seem to work if I use...
1
by: Fenno | last post by:
I am creating an ASP.NET project that contains some pages that require a secure connection via HTTPS/SSL. The problem I have is how do you maintain session data when switching between HTTPS and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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...

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.