开发者

Session in ASP is showing error

开发者 https://www.devze.com 2022-12-31 04:10 出处:网络
IF Session(\"days\")> 1 then this statement is not working in my Classic ASP code.Any help is greatly appreciated
IF Session("days")> 1 then

this statement is not working in my Classic ASP code.Any help is greatly appreciated

开发者_JAVA技巧Just I need to know whether this is a valid session code for Classic ASP (No error message is showing)


Most probably this is because Session("days") returns a string that you are using as integer.

This might fix the issue

If CINT(Session("days"))>1 Then
End If


when saving the session variable do session("var") = 1 not: session("var") = "1"

or:

 Dim svar as Integer
 svar = some integer
 session("var") = svar
0

精彩评论

暂无评论...
验证码 换一张
取 消