Hi All,
We have a custom app that allows our users to run as many reports as they want. Their asp.net session timeout is set very high - to 1 day.
We log them into the BO CMS with a default user ID and password. We want to let them run reports for as long as they want. (we don't have enough users to worry about performance, and we have a CPU license - so it doesn't matter how many sessions are active at a time.)
So in code, we're logging them into the CMS like this...
then creating the infoStore like this...
And we're storing both in the session. How can I tell if the IStore is still valid when we grab it out of the session to do a BO query?
the only thing I can find that I THINK is checking is:
Also, how can I define the valid number of minutes for this IStore (without using a logonToken and defining it's valid number of minutes)?
Thanks!
Melissa
We have a custom app that allows our users to run as many reports as they want. Their asp.net session timeout is set very high - to 1 day.
We log them into the BO CMS with a default user ID and password. We want to let them run reports for as long as they want. (we don't have enough users to worry about performance, and we have a CPU license - so it doesn't matter how many sessions are active at a time.)
So in code, we're logging them into the CMS like this...
Code:
myEnterpriseSession = mySessionMgr.Logon(user, password, server, auth)
then creating the infoStore like this...
Code:
myEnterpriseService = myEnterpriseSession.GetService("InfoStore")
myInfoStore = CType(myEnterpriseService, InfoStore)
And we're storing both in the session. How can I tell if the IStore is still valid when we grab it out of the session to do a BO query?
the only thing I can find that I THINK is checking is:
Code:
if (TypeName(HttpContext.Current.Session("InfoStore")) = "ISInfoStore")...
Also, how can I define the valid number of minutes for this IStore (without using a logonToken and defining it's valid number of minutes)?
Thanks!
Melissa