Cookie.ASP.NET_SessionID

108 views
Skip to first unread message

Aaron W. West

unread,
Jul 29, 2009, 5:59:48 AM7/29/09
to ra...@googlegroups.com
Using Railo 3.1.0.015 beta, I'm unable to get at this variable. It worked in
OpenBD.

isdefined("cookie.ASP.NET_SessionId") (returns false)
#ASP.NET_SessionId# (returns an exception, because the scope ASP doesn't
exist. Also tried with cookie.ASP.Net_SessionId)

I used this workaround:

<CFSET start = find("ASP.NET_SessionId=",http_cookie,1) + 18>
<cfif start gt 0>
<CFSET end = find(";",http_cookie,start)>
<cfif end lt 0>
<cfset aspsession = mid(http_cookie,start,999)>
<cfelse>
<cfset aspsession = mid(http_cookie,start,end-start)>
</cfif>
</cfif>

(Why do I care about ASP.NET sessions? Because I implemented a dual-login
system. User logs in to ASP and is auto-logged into the CFML site.)


Todd Rafferty

unread,
Jul 29, 2009, 7:04:33 AM7/29/09
to ra...@googlegroups.com
I'm betting it's because of the additional . after ASP. It's attempting to treat it like a structure or something.  I bet if your variable was named cookie.ASP_NET_SessionId or cookie.ASPdotNET_SessionId you wouldn't have noticed.

I guess I would suggest that you raise a JIRA ticket, but I can't guarantee that this will get fixed.

~Todd Rafferty
Railo Community Manager -- Volunteer
http://getRailo.org/

Adrian Lynch

unread,
Jul 29, 2009, 7:07:51 AM7/29/09
to Railo
If that is the case, would using:

COOKIES["ASP.NET_SessionId"]

be a fix?

On Jul 29, 12:04 pm, Todd Rafferty <t...@getrailo.org> wrote:
> I'm betting it's because of the additional . after ASP. It's attempting to
> treat it like a structure or something.  I bet if your variable was named
> cookie.ASP_NET_SessionId or cookie.ASPdotNET_SessionId you wouldn't have
> noticed.
>
> I guess I would suggest that you raise a JIRA ticket, but I can't guarantee
> that this will get fixed.
>
> ~Todd Rafferty
> Railo Community Manager -- Volunteerhttp://getRailo.org/

Todd Rafferty

unread,
Jul 29, 2009, 7:24:24 AM7/29/09
to ra...@googlegroups.com
That should work.


~Todd Rafferty
Railo Community Manager -- Volunteer
http://getRailo.org/

Michael Offner-Streit

unread,
Jul 29, 2009, 5:14:31 PM7/29/09
to ra...@googlegroups.com
please check this blog entry
http://www.railo.ch/blog/index.cfm/2008/11/17/Struct-addressing-in-Railo

greetings micha

Aaron W. West schrieb:
--
Michael Offner-Streit
CTO
Railo Technologies GmbH
michael...@railo.ch
www.getrailo.com

Mailing List (english): http://groups.yahoo.com/group/railo_talk/
Mailing List (german): http://de.groups.yahoo.com/group/railo/
Linked in: http://www.linkedin.com/e/gis/71368/0CF7D323BBC1
Issue Tracker: http://jira.jboss.org/jira/browse/RAILO
Blog: http://www.railo-technologies.com/blog


Reply all
Reply to author
Forward
0 new messages