Click here to Skip to main content
16,007,779 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: regarding nature of session id? Pin
Abhishek Sur14-Feb-10 22:36
professionalAbhishek Sur14-Feb-10 22:36 
Questionsession related problem? Pin
Tridip Bhattacharjee14-Feb-10 21:22
professionalTridip Bhattacharjee14-Feb-10 21:22 
AnswerRe: session related problem? Pin
Abhishek Sur14-Feb-10 22:39
professionalAbhishek Sur14-Feb-10 22:39 
AnswerRe: session related problem? Pin
keyur satyadev14-Feb-10 22:41
keyur satyadev14-Feb-10 22:41 
Questionmp3 player in website Pin
Cvaji14-Feb-10 20:51
Cvaji14-Feb-10 20:51 
AnswerRe: mp3 player in website Pin
Cvaji14-Feb-10 23:16
Cvaji14-Feb-10 23:16 
AnswerRe: mp3 player in website Pin
Samarjeet Singh@india5-May-10 2:26
Samarjeet Singh@india5-May-10 2:26 
Questionsession is lost even in SqlServer Session mode Pin
Amit Spadez14-Feb-10 20:03
professionalAmit Spadez14-Feb-10 20:03 
I have installed "aspnet_regsql" at the command prompt as follows:

aspnet_regsql -S <servername> -E -ssadd -sstype p


After that, I have made changes in the Web.Config file as follows:

<sessionstate mode="SQLServer" sqlconnectionstring="Data Source=myServerName; Integrated Security=true" cookieless="false" timeout="20">


After that, I have made one small asp.net application in which there is one default.aspx web page in which there are following tools:







And code for default.aspx.vb is:

Partial Class SessionState
Inherits System.Web.UI.Page
Sub Session_Add(ByVal sender As Object, ByVal e As EventArgs)
Session("mySession") = text1.Value
span1.InnerHtml = "Session data updated! <P> Your session contains: <font color=red>" & Session("MySession").ToString() + "</font>"
End Sub

Sub CheckSession(ByVal sender As Object, ByVal e As EventArgs)

If Session("MySession") <> Nothing Or Session("MySession") <> "" Then
Dim strSession = Session("MySession").ToString
If strSession.Equals("") Or strSession.Equals(Nothing) Then
span1.InnerHtml = "NOTHING, SESSION DATA LOST!"
Else
span1.InnerHtml = "Your session contains:<font color=red>" & Session("MySession").ToString() + "</font>"
End If
End If
End Sub

End Class

Now, When i run the applcation , sessions are stored properly in the "AspState" DataBase.
But when i restart the application, sessions are not shown on the page but are still in the database.
In other words, session state works like In-proc , even is used with SqlServer mode.

Where colud be the error..?
Plz help
QuestionMusic plyer or media Player in Website Pin
Amir979514-Feb-10 19:23
Amir979514-Feb-10 19:23 
Questiongridview Pin
diyaa_0814-Feb-10 19:14
diyaa_0814-Feb-10 19:14 
QuestionAlignment of brackroung gets changed in master page design view Pin
svt gdwl14-Feb-10 19:11
svt gdwl14-Feb-10 19:11 
AnswerRe: Alignment of brackroung gets changed in master page design view Pin
Abhishek Sur14-Feb-10 22:41
professionalAbhishek Sur14-Feb-10 22:41 
QuestionSEO for blogs Pin
Member 227733414-Feb-10 18:58
Member 227733414-Feb-10 18:58 
QuestionSEO for blogs Pin
Member 227733414-Feb-10 18:58
Member 227733414-Feb-10 18:58 
QuestionRetriving a particular Column value from Checked List box on Selected index Changing..... Pin
vineesh v14-Feb-10 18:57
vineesh v14-Feb-10 18:57 
AnswerRe: Retriving a particular Column value from Checked List box on Selected index Changing..... Pin
sashidhar14-Feb-10 19:12
sashidhar14-Feb-10 19:12 
QuestionOracle Session Problem Pin
AndyASPVB14-Feb-10 8:17
AndyASPVB14-Feb-10 8:17 
QuestionJavascript callbacks question !! Pin
el_scrub14-Feb-10 6:46
el_scrub14-Feb-10 6:46 
AnswerRe: Javascript callbacks question !! Pin
Not Active14-Feb-10 10:42
mentorNot Active14-Feb-10 10:42 
GeneralRe: Javascript callbacks question !! Pin
el_scrub14-Feb-10 11:26
el_scrub14-Feb-10 11:26 
QuestionCannot Implement Searchable Gridview in my ASP.NET Web Application Pin
Sid Childers13-Feb-10 19:55
Sid Childers13-Feb-10 19:55 
QuestionExample ASP.NET AJAX Pin
bartthefart13-Feb-10 18:51
bartthefart13-Feb-10 18:51 
AnswerRe: Example ASP.NET AJAX Pin
Not Active14-Feb-10 9:25
mentorNot Active14-Feb-10 9:25 
GeneralRe: Example ASP.NET AJAX Pin
Keith Barrow14-Feb-10 10:25
professionalKeith Barrow14-Feb-10 10:25 
GeneralRe: Example ASP.NET AJAX Pin
Not Active14-Feb-10 10:39
mentorNot Active14-Feb-10 10:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.