Closed Thread Icon

Topic awaiting preservation: One login, two sites? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=22295" title="Pages that link to Topic awaiting preservation: One login, two sites? (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: One login, two sites? <span class="small">(Page 1 of 1)</span>\

 
Kaniz
Bipolar (III) Inmate

From:
Insane since: Jun 2003

posted posted 06-23-2004 16:59

Hi

I have a bit of a problem / question. I have two web apps hosted on IIS, two different webs (say /web1 and /web2). The client wants it so if you login to web1, you dont need to re-login when you surf to web2, and visaversa.

what is the best way of going about this?

Thanks

- K

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 06-23-2004 17:19

I'm sorry Kaniz, but what is a 'web'.
-If those are just directories within one domain - you can set a cookie.
-You can built an elaborate session passing scheme.
-you can turn both sites into one.
...
there are any number of possibilities - but you have not specified the constraints well enough to choose anyone.

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 06-23-2004 18:32

Session management usually requires cookies for maintaining login information. And cookie data can not be passed among different domains.

Hmm... how would you pass session data Prime? It seems to me that if they are both hosted on the same machine it should be possible however if you can't get cookies you don't have a way to identify someone as they pass between domains. I guess maybe by IP? Or building links that passes session data? I know that's possible that's how some payment processing solutions work but Jeez that would be a pain and wouldn't work if the user browsed between the sites without using site links.



.:[ Never resist a perfect moment ]:.

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 06-23-2004 18:54

The key trick here would be to embend a (hidden) image from the other server, allowing the cookies to be accessed...

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 06-23-2004 19:33

Ah good hack.



.:[ Never resist a perfect moment ]:.

Kaniz
Bipolar (III) Inmate

From:
Insane since: Jun 2003

posted posted 06-29-2004 16:46

Well, I got it figured out. I just had to do a google on cookies to inform myself a little better about them.

Both sites are hosted off of the same domain

blah.whatever.com/site1
blah.whatever.com/site2

just set the directory to blah.whatever.com for access, and it carried inbetween the two.

However, in the off chance they change how things are setup to be

site1.whatever.com
site2.whatever.com

will the same solution work?blah.whatever.com/site1

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 06-29-2004 18:48

no. The domains have to be equal for that particular trick to work.

« BackwardsOnwards »

Show Forum Drop Down Menu