Posting to Ashx files and requesting token

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
frosty
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 32
Joined: Thu Jul 24, 2008 3:22 am

Posting to Ashx files and requesting token

Post by frosty » Mon Feb 02, 2009 9:19 am

I'm getting some confusing results around myCustom.ashx handler.

If i visit the handler via the browser:

i get Token.Instance.User.UserId = 162 // which is correct

If i post to the handler:
i get Token.Instance.User.UserId = 163 // obviously a new user is generated.

Any thoughts?

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Posting to Ashx files and requesting token

Post by mazhar » Mon Feb 02, 2009 9:36 am

Probably that's because browser has a different session.

frosty
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 32
Joined: Thu Jul 24, 2008 3:22 am

Re: Posting to Ashx files and requesting token

Post by frosty » Mon Feb 02, 2009 1:16 pm

I've included IReadOnlySessionState

public class test : IHttpHandler, IReadOnlySessionState {

The issue seems to be that the session in timing out. Tho in the web.config

timeout="30" // 30 mins

<sessionState mode="InProc" timeout="30" cookieName="AC7.SESSIONID"/>

Post Reply