RedMar
RedMar

Reputation:

ASP.Net SessionID keeps getting lost

My asp.net application works fine when launched from its own browser, but when its launched from another web application (sharepoint webpart) using window.open it works until the user clicks and posts back, then the session is lost.

I think its related to cookies, because when I set the session state to be cookieless everything works fine.

Why does the sesssionid get lost in the NEW application when launching the app using window.open? I would like each application to have its own session cookie, I've tried setting the name of the cookie but the same thing happens, on the first post back the sessionid is lost??

Please help?

Upvotes: 0

Views: 1617

Answers (3)

Adrian Zanescu
Adrian Zanescu

Reputation: 8008

drop window.open(). use links with tarket="blank". if you need to call them from JS just do link.click() on it.

Upvotes: 0

Bryan Migliorisi
Bryan Migliorisi

Reputation: 9210

What browser are you using?

IE6 has this exact issue, possibly newer versions as well.

Refer to Microsoft Support

Upvotes: 0

Tim Hoolihan
Tim Hoolihan

Reputation: 12396

Sharepoint manages it's own session. Sessions are tied to applications (URI). You would need to share some sort of login token between applications.

check out:

http://forums.asp.net/t/1335229.aspx

http://forums.asp.net/p/1356006/2781938.aspx

Upvotes: 0

Related Questions