Community
Showing results for 
Search instead for 
Do you mean 
Reply

Web and the session manager

New Member
Posts: 2
Country: USA

Web and the session manager

[ Edited ]

I'm fairly new to web, so my problem could merely be due to my lack of understanding of how web works. In my web plugin, the ActSessionManager is provided in the Init() method. I've stored this instance in my application. My end goal is to have access to the Act framework when certain events occur on a page. The problem is, my aspx page does not retain the session manager that i've stored, ie its null. What am i doing wrong? Does the session manager expire? Any tips would be appreciated, thanks.

Employee
Posts: 1,163
Country: USA

Re: Web and the session manager

How are you passing your instance of the session manager to the code behind for your aspx page? I've not done it, but I think you should be able to create a property in your class that inherits IWebPlugin and get it over to your aspx page that way. The sudo code would look something like:

 

private ACTSessionManager session;

public ACTSessionManager Session { get { return session; } }

 

On the code behind your aspx page:

 

ACTSessionManager mySession = Class1.Session;

 

Matthew Wood
Act! SDK Support
Community Moderator
New Member
Posts: 2
Country: USA

Re: Web and the session manager

That's the way I originally tried, but that didn't work. As I mentioned, I'm not very familiar with web development, but after reading up on session states, it all made sense.