Click here to Skip to main content
15,891,841 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a web application with 2 aspx page,

- Login form
- Message form
When I login ok, I made Session["username"]=1, and i want to get Session["username"] value in hub using Signal R
How can I do it?
Posted
Comments
Afzaal Ahmad Zeeshan 15-Mar-15 10:02am    
Just push it down to the client using hub-client connection. What is difficult in this one?
DungPSNV 16-Mar-15 10:19am    
The difficult is that how can I select all messages from SQL server, with the Session["username"]

$.connection.hub.start().done(function () {
notifications.server.sendNotifications(someSession);

}).fail(function (e) {
alert(e);
});
will display same messages on the other username.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900