473,325 Members | 2,442 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,325 software developers and data experts.

Shariing session across domains

Hi,

I have a site whose login is based on cookie based sessions. I have a
section of the site which is a sub-domain of the main site. So, naturally
both would have different IP addresses.....how i want, that when a user logs
in to main site, he should automatically be logged in the sub sites. That
is, thy should be able to share the session variables. How do i do that.

Rgds,
Bhaskardeep
Feb 17 '07 #1
2 1195
Hello Bhaskardeep,

See there http://groups.google.com/group/micro...c5b4eb44f1f21d

BKHi,
BK>
BKI have a site whose login is based on cookie based sessions. I have
BKa section of the site which is a sub-domain of the main site. So,
BKnaturally both would have different IP addresses.....how i want,
BKthat when a user logs in to main site, he should automatically be
BKlogged in the sub sites. That is, thy should be able to share the
BKsession variables. How do i do that.
BK>
BKRgds,
BKBhaskardeep
---
WBR, Michael Nemtsev [C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
Feb 17 '07 #2
Hi Michael,

Thaks a lot for the link....well, I suppose the best way of doing is using
user based cookies, though the downside is, if the user disables cookies. I
thought of using cookieless sessions, which passes the session id in query
string, but that would be not suitable for SEO purpose. Can it be like,
first I check if the user has enables cookie in the browser, if yes i can
continue using user cookies or else i can use a cookie less session.....

Thx,
Bhaskardeep

"Michael Nemtsev" <ne*****@msn.comwrote in message
news:a2***************************@msnews.microsof t.com...
Hello Bhaskardeep,

See there
http://groups.google.com/group/micro...c5b4eb44f1f21d

BKHi,
BKBKI have a site whose login is based on cookie based sessions. I
have
BKa section of the site which is a sub-domain of the main site. So,
BKnaturally both would have different IP addresses.....how i want,
BKthat when a user logs in to main site, he should automatically be
BKlogged in the sub sites. That is, thy should be able to share the
BKsession variables. How do i do that.
BKBKRgds,
BKBhaskardeep
---
WBR, Michael Nemtsev [C# MVP]. My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


Feb 19 '07 #3

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

Similar topics

1
by: d.schulz81 | last post by:
Hi all, We have about 10 different domains that are linked very closely and we want to identify and keep track of every single user that surfs our websites by the use of sessions. The problem...
4
by: Le | last post by:
Hello I was wondering if there was a way to keep a user's session info across multple domains For example, company A owns website www.a.com and www.b.com. A user logs into www.a.co and later...
2
by: TaeHo Yoo | last post by:
Hi all, I have a solution which contains multiple projects. Those multiple projects should share the same session. For example, users login, create the session for users then these session...
7
by: Seth | last post by:
I have noticed that the id of my session object changes when I switch from a non-secure to a secure connection. What I'm trying to do: I have a cookie that is built on the non-secure side of...
0
by: Suresh | last post by:
Hi, Problem Description: How to share Session between ASP and ASP.Net across the domains. Microsoft has given an article on session sharing between ASP and ASP.Net. It workd fine if both ASP...
10
by: Suresh | last post by:
how to share Session Sharing Across the domain
1
by: guoqi zheng | last post by:
I have an application in IIS with a few sub domains assign to it. Is there a way for me to share session data across those subdomains? regards, Guoqi Zheng http://www.ureader.com
7
by: Doug | last post by:
An ASP.NET session cookie set on "www.mydomain.com" can not be accessed on "search.mydomain.com"; hence, a new session and cookie are being created on every sub-domain. This is occuring because...
3
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4. I have two domains -- www.mydomain1.com and www.mydomain2.com. Both point to the same IP address. I have two pages on that IP -- first.php <?php session_start();...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.