Forum Moderators: open

Message Too Old, No Replies

Cross domain session

store session info for AJAX applications

         

kadnan

1:01 pm on Jun 12, 2006 (gmt 0)

10+ Year Member


Hi

I need to capture session value across the domain.Currenly i acess a php page via javascript ajAX method which sets a session,now when i access another page from different method which actually retrives session value then its giving null value for session variable.Why is that?i am using same browser window for accessing diffeent pages.

How can i preserve remote session info on client machine.Ok i can create a cooke to store session value returned from remote server but why same window treating other file in different session.Does xmlhttp() creates new request each time when its called?

Thanks

-adnan

Brett_Tabke

7:15 pm on Jun 14, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



There is no real reliable way to have a session be static accross domains - even sub domains. Most of the modern browsers will block those cookies.

However, if you wish to pass form variables, you could create a form that when submit is pressed, will pass the values to the new site. You could also pass values via link if they have to click it.

kadnan

7:46 am on Jun 15, 2006 (gmt 0)

10+ Year Member



somehow i solved it via Dynamic scripting