ASP.NET Session

V

Vishal

Hello,

I have one application and two domains are pointed to it

www.myapplication.com and
secure.myapplication.com

In some of the pages where i need to take Credit card numbers i want to use
SSL security.

But when i response.redirect from insecure url to secure url it losts the
session variables. I tried using StateServer and SQL server as session
modes.
The application is same only the domain name is different.

Am i missing anything or do i need to do something with my code?

Regards,
Vishal Dalsania
Rigel Networks
 
H

Hans Kesting

Hello,
I have one application and two domains are pointed to it

www.myapplication.com and
secure.myapplication.com

In some of the pages where i need to take Credit card numbers i want to use
SSL security.

But when i response.redirect from insecure url to secure url it losts the
session variables. I tried using StateServer and SQL server as session modes.
The application is same only the domain name is different.

Am i missing anything or do i need to do something with my code?

Regards,
Vishal Dalsania
Rigel Networks

"Session" depends on cookies. The browser sends the cookies depending
on the URL used. As you use two different URLs, the browser will not
send the session-cookie for "insecure" to "secure" (or vice-versa).

For regular cookies you could set the domain to "myapplication.com", I
don't know if that is possible for the session cookie. Maybe someone
else??

Hans Kesting
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,263
Messages
2,571,064
Members
48,769
Latest member
Clifft

Latest Threads

Top