To read an object from the Session collection use following code:

[AjaxPro.AjaxMethod(AjaxPro.HttpSessionRequriement.ReadWrite)]
public object ReadSession(string name)
{
    return System.Web.HttpContext.Current.Session[name];
}


Regards,
Michael


On 6/23/06, Chris <[EMAIL PROTECTED]> wrote:
>
> If you refer to my first post you can see what methods I have tried to
> get access to the Session Object.
>
> ((ASP.global_asax)sender).Session
> HttpContext.Current.Session
>
> both of them give me a null value.
>
> and I'm sure, but may be wrong that
> System.Web.HttpContext.Current
> is the same as
>
> "using System.Web"
>
> HttpContext.Current
>
>
> >
>


-- 
Best regards | Schöne Grüße
Michael

Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer

http://weblogs.asp.net/mschwarz/
http://www.schwarz-interactive.de/
mailto:[EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---

Reply via email to