Forum Themes:
Welcome !

 Will SIP work between to domains?

Author Message
iderdik

  • Total Posts : 1
  • Reward points : 0
  • Joined: Sep 29 '06
  • Status: offline
Will SIP work between to domains? Fri. Sep 29, '06 8:58 AM (permalink)
0
If my main site where customers log in is www.mysite.com, Will the SIP enable them to not have to login to forums hosted on a different domain (and possibly different server) such as forums.mytechsupportsite.com ?
 
#1
Samuel

  • Total Posts : 11786
  • Reward points : 168350
  • Joined: May 23 '01
  • Status: offline
RE: Will SIP work between to domains? Fri. Sep 29, '06 11:35 AM (permalink)
0
Hi Iderdik,

The sip utilizes cookie to perform auto login, which means the info cannot be read across domains. However, with some clever programming it can be done. Let me give you an example.

1) you create a table in the db to hold 2 values, member ID and a hash value (maybe an MD5 of memberID + date)
2) once member is logged in using the SIP on the main site, store the member ID and the hash value in the table
3) redirect the member to a page located on the mytechsupportsite.com which also utilizes the SIP, with the hash value as the querystring
4) on this specific page, read the hash value and pull the member ID from the table created in 1), and then delete the record
5) base on the member ID, pull the login and password from the forum database and use the SIP to perform login (because the SIP takes login and password), which then creates a cookie that is readable on the second site.
6) at the end of the operation, you can either redirect the user back to the main site or do whatever you see fit.
<message edited by Samuel on Mon. Oct 2, '06 5:47 PM>
ASPPlayground.NET
~ see our Version 4 plans here

 
#2
cdrinfo

  • Total Posts : 56
  • Reward points : 210
  • Joined: Apr 16 '04
  • Status: offline
RE: Will SIP work between to domains? Sun. Oct 1, '06 3:12 AM (permalink)
0
If you do have access to the back end server code of both domains another approach might be to use a trick such one of those found in the net for sharing session state between the asp and asp.net pages of a single web site.
 
Certainly, this one might not be so efficient as that suggested by Samuel but can be used, for example, for getting (long) session variables from another site.
 
#3
IceDog

  • Total Posts : 32
  • Reward points : 3355
  • Joined: Dec 28 '08
  • Status: offline
RE: Will SIP work between to domains? Tue. Dec 30, '08 6:50 PM (permalink)
0
Samuel


Hi Iderdik,

The sip utilizes cookie to perform auto login, which means the info cannot be read across domains. However, with some clever programming it can be done. Let me give you an example.

1) you create a table in the db to hold 2 values, member ID and a hash value (maybe an MD5 of memberID + date)
2) once member is logged in using the SIP on the main site, store the member ID and the hash value in the table
3) redirect the member to a page located on the mytechsupportsite.com which also utilizes the SIP, with the hash value as the querystring
4) on this specific page, read the hash value and pull the member ID from the table created in 1), and then delete the record
5) base on the member ID, pull the login and password from the forum database and use the SIP to perform login (because the SIP takes login and password), which then creates a cookie that is readable on the second site.
6) at the end of the operation, you can either redirect the user back to the main site or do whatever you see fit.


This would be a cool future feature that can  be plugged into the current site.
 
#4
Online Bookmarks Sharing: Share/Bookmark

Jump to:

Current active users

There are 0 members and 1 guests.

Icon Legend and Permission

  • New Messages
  • No New Messages
  • Hot Topic w/ New Messages
  • Hot Topic w/o New Messages
  • Locked w/ New Messages
  • Locked w/o New Messages
  • Read Message
  • Post New Thread
  • Reply to message
  • Post New Poll
  • Submit Vote
  • Post reward post
  • Delete my own posts
  • Delete my own threads
  • Rate post

2000-2012 ASPPlayground.NET Forum Version 3.9