We have a flex application that works with ASP.NET. (through weborb). And we use several data at the .NET Side to load data, ex: UserId, ChannelId, … For now only userid is stored in the name of the HttpContext.Current.Identity. So the flex side doesn’t need to push the user id all the time, but now we want to disable the ‘push’ of the channelid too.
I was wondering where we should ‘store’ these data. Is a Session save enough or do we need to use a cookie? or are there any other methods for this ‘problem’.
I’d recommend to use
Sessionbecause the values are then stored on the server (cookies are stored on the client). Also use a static class and wrap the session there.Instead of
use
and you can declare
SessionManageras a static class with static properties that use the session. I believe this is a general Microsoft practice as well.Cheers