Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cookies Error on DNS host name changes ?

Status
Not open for further replies.

ariefk

Technical User
Mar 17, 2002
18
ID
I made an ASP app with cookies to pass information through pages. Once the application runs well with user pointing to but as we set another name for the server and users pointed to The cookies doesn't work at all although it is the same application they use. Any suggestion ? (using 'session' doesn't work either)
 
Cookies and Sessions are dependant on the domain name. There are diferent Cookies and Sessions for each domain you go.

________
George, M
 
If so, the application should be work for both domain even when user use the same .asp and cookies name, am I right ?
But in my case, when user point to second link, the cookies can't be requested by next pages. Any suggestion ?
 
No, i forgot to place Application on same boat.

If you request a page from another server(domain) how can the new server knws what Session, Application, Cookies... etc you have? He cant. So you need a workaround.
You can send them as QuerryStrings to the next page or save them to an database who both domains has access.
Also you can check HTTP_REFERER on the second page and if that is ok you can register there Session,Cookies... etc as well.


________
George, M
 
Thank a lot George, request.querystring works well for me for both domain.

Regards,

Arief K
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top