Getting session ID with SL2 !
-
Hello everybody. Can we get user session ID with SilverLight 2 ? Is it possible at all ? Thank you.
-
Hello everybody. Can we get user session ID with SilverLight 2 ? Is it possible at all ? Thank you.
I don't know what "user session ID" you're referring to, but I'll answer yes and yes. Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
I don't know what "user session ID" you're referring to, but I'll answer yes and yes. Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
Mark Salsbery wrote:
I don't know what "user session ID" you're referring to,
Well, I know a session ID from PHP that we could get it with
session_id()
function. How many session ids do we have in SL2 ? -
Mark Salsbery wrote:
I don't know what "user session ID" you're referring to,
Well, I know a session ID from PHP that we could get it with
session_id()
function. How many session ids do we have in SL2 ?Mohammad Dayyan wrote:
How many session ids do we have in SL2 ?
None. Session IDs are a server side thing - Silverlight is a client technology. You can use ASP.NET sessions through ASP.NET/WCF services... Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Mohammad Dayyan wrote:
How many session ids do we have in SL2 ?
None. Session IDs are a server side thing - Silverlight is a client technology. You can use ASP.NET sessions through ASP.NET/WCF services... Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
Thanks Mark .
Mark Salsbery wrote:
You can use ASP.NET sessions through ASP.NET/WCF services...
I'm working just with SL2 (client side) and I wanna get an unique thing for every visitor. Can we get a something in SL2? Is there an unique thing in Client side that I could get it with SL2 ? Would appreciate for helping.
-
Thanks Mark .
Mark Salsbery wrote:
You can use ASP.NET sessions through ASP.NET/WCF services...
I'm working just with SL2 (client side) and I wanna get an unique thing for every visitor. Can we get a something in SL2? Is there an unique thing in Client side that I could get it with SL2 ? Would appreciate for helping.
Mohammad Dayyan wrote:
I'm working just with SL2 (client side) and I wanna get an unique thing for every visitor.
Silverlight runs on the client so it's already "unique". There's no concept of "visitor" on the client side. Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Hello everybody. Can we get user session ID with SilverLight 2 ? Is it possible at all ? Thank you.
You can inherit the session context in your WCF Services. Just use:
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
public class MyServiceBut remember you will be responsible as well to keep alive that session (maybe service ping every X minutes). HTH Braulio
/// ------------------------- Braulio Díez DBSchemaEditor.com Free Silverlight based DB Schema Modeling Tool /// -------------------------