Take the 2-minute tour ×

I have installed nopcommerce v 2.5 on abc.domainName.com and I have a wildcard SSL Certificate to different domain name but on Same server ex abc.domainNameSSL.com. So When I'm using it, When I transfer from non-secure page to secure page, I am losing my session.

So Can anyone tell me What is best way to pass session in this condition.?

Thanks in advance.

share|improve this question
Are you crossing application domains? –  Chuck Conway May 23 '12 at 22:39

1 Answer 1

up vote 1 down vote accepted

If you are authenticated on one domain and then transfering to another domain, you'll loose the session cookie because it can not cross domains.

For example if you are logged into abc.name.com and then transfer to another domain (i.e. abc.nameSSL.com), even if it is the exact same website you'll loose the session. The server is looking for the session cookie which was stored under abc.name.com. Now that you are on abc.namessl.com it can not find it. Thus you are not logged-in.

A work around would be to not change the root domain (name.com) and instead do something like abcssl.name.com. You'd have to set up a domain wildcard for the session cookie, but it would work.

share|improve this answer
thanks for replying.. But suppose I cann't do what you are saying..So Is there any other way for doing it like Passing session through URL or in some hidden form..?? –  Pankaj May 23 '12 at 23:10
What is in your session? Is it just the fact that they are logged on, or is there sessionState data involved? –  Chuck Conway May 24 '12 at 0:48
If you they are just logged on you can preserve that by passing a token via the querystring. –  Chuck Conway May 24 '12 at 0:50
@Pankaj You could use an out of proc session service. There are two possiblities: Sql Server and In Memory. This would allow you to share session between the applications. Each has it downsides... –  Chuck Conway May 24 '12 at 19:34
thanks for help..I have done some hack to share same session on both the domain name. –  Pankaj Jul 30 '12 at 11:17

Your Answer


