Hi I have a Session Provider class to handle Sessions in my MVC application.

Here is the Session Provider Class...

```
public class SessionProvider
    {
        public static Portal.Application.BoundedContext.ScreenPop.Dtos.User LoggedUser
        {
            get { return (Portal.Application.BoundedContext.ScreenPop.Dtos.User) HttpContext.Current.Session["LoggedUser"]; }
            set { HttpContext.Current.Session["LoggedUser"] = value; }
        }

        public static void Clear()
        {
            HttpContext.Current.Session.Abandon();
            HttpContext.Current.Session.Clear();
        }
    }

```

And the User class which used to cast the above Session has these attributes.

* Name
* PhoneNumber

I need to get these Name and Phone number in my View using javascript..

Here what I have dobe so far...

```
<script type="text/javascript">
    @{
        User loggedUser = SessionProvider.LoggedUser;     
    }

    var loggedUserName = loggedUser.Name ;
        var loggedUserPhone = loggedUser.PhoneNumber;

</Script>

```

But I have this error in firebug when I run my application..

```
ReferenceError: loggedUser is not defined
var loggedUserName = loggedUser.Name;

```

How can I get those two values? 
I am using Razor View engine...