Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to access same Session in two websites?

I need to know how to access a session set by one website or web application in another web application.

For example I have logged in gmail.com in firefox tab and then I opened orkut.com in a different tab and here I don't have to log in.

I need to access or share same user session in two different web application in ASP.Net.

like image 318
Himadri Avatar asked Oct 07 '09 12:10

Himadri


People also ask

How do sessions work in websites?

A session is defined as a series of related browser requests that come from the same client during a certain time period. Session tracking ties together a series of browser requests—think of these requests as pages—that may have some meaning as a whole, such as a shopping cart application.

Is session stored in browser?

To track sessions, a web session ID is stored in a visitor's browser. This session ID is passed along with any HTTP requests that the visitor makes while on the site (e.g., clicking a link). “Session” is the term used to refer to a visitor's time browsing a web site.

What is the meaning of session in website?

A session is a group of user interactions with your website that take place within a given time frame. For example a single session can contain multiple page views, events, social interactions, and ecommerce transactions.


1 Answers

You cannot cross the app domain with built in asp.net session for good security reasons.

What you are looking for is a single sign on system. This means you'd only have to sign on once but you'd after switching between apps you might have to reload that app's session from db if it isn't there. This can be done as you have their identity from the sign on.

like image 187
dove Avatar answered Sep 23 '22 10:09

dove