I wanted to avoid that for that very reason...
But now that I think about it indexOf returns the first occurance in a
string. I don't think I'll have anything to worry about since the SessionID
comes before everything except the site name.
Thanks,
Paul
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:eA******************@TK2MSFTNGP10.phx.gbl...
Isn't it a simple mater of parsing the path information?
var path = window.location.pathname;
var sessionId = path.substring(path.indexOf("(")+1, path.indexOf(")"));
will work so long as none of your paths' use ( or )
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"PJ6" <no****@nowhere.net> wrote in message
news:ue****************@TK2MSFTNGP14.phx.gbl... Is is possible to get the session ID in JavaScript when using ASP.NET in
cookieless mode?
The reason I ask is that one of the functions I want to perform using
remote scripting (AJAX) is a page location redirect. When the session is
cookieless I want to respect the session ID contained in the current URL.
Paul