Forums
This topic is locked
tribble logic ! slove it !
Posted 13 Mar 2002 23:45:38
1
has voted
13 Mar 2002 23:45:38 suhail kaleem posted:
Hi!what will be the value of session("MM_username" on page e-a-u.asp in the below code ??????????
what i am trying to get is the value of session("MM_username" should be equal to session("run"
but it give me the value of session("MM_username" equal to varun
can any body help me ??
suhailkaleem
<%
if request.querystring("un" <> "" then
varun = request.querystring("un"
varua = request.querystring("ua"
session("MM_username" = session("run"
session("fa" = "admin2"
Session("MM_UserAuthorization" = varua
Session("MM_Username" = varun
if Session("MM_UserAuthorization" = "admin" then
response.redirect "admin_aera.asp"
end if
if Session("MM_UserAuthorization" = "Health professional" then
response.redirect "../members.asp"
end if
if Session("MM_UserAuthorization" = "hospital" then
response.redirect "../hospital_aera.asp"
end if
end if
if request.querystring("logback" = "1" then
session("run"= session("MM_username" ' what will be the value of MM_username here ? it is giving me varun instead of session("run" y is that ???
Session("MM_UserAuthorization" = "admin"
session("fa" = ""
response.redirect "e-a-u.asp"
end if
%>
Replies
Replied 13 Mar 2002 23:58:43
13 Mar 2002 23:58:43 Dennis van Galen replied:
oy, i allready replied to this question on learningultradev.com
hope i got it right <img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>
With kind regards,
Dennis van Galen
Webmaster KPN Services
Financial and Information Services
hope i got it right <img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>
With kind regards,
Dennis van Galen
Webmaster KPN Services
Financial and Information Services
Replied 14 Mar 2002 00:07:12
14 Mar 2002 00:07:12 suhail kaleem replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
oy, i allready replied to this question on learningultradev.com
hope i got it right <img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>
With kind regards,
Dennis van Galen
Webmaster KPN Services
Financial and Information Services
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
<%
if request.querystring("un" <> "" then
varun = request.querystring("un"
varua = request.querystring("ua"
session("MM_username" = session("run" <- sets session"username" to be equal to session"run" now both have the same value
session("fa" = "admin2"
Session("MM_UserAuthorization" = varua
Session("MM_Username" = varun <- sets session"username" to be equal to varun ?! now session(MM_username" valude is overrided by varun so now both have the same value
if Session("MM_UserAuthorization" = "admin" then
response.redirect "admin_aera.asp"
end if
if Session("MM_UserAuthorization" = "Health professional" then
response.redirect "../members.asp"
end if
if Session("MM_UserAuthorization" = "hospital" then
response.redirect "../hospital_aera.asp"
end if
end if
if request.querystring("logback" = "1" then
session("run"= session("MM_username" <- now session run is equal to the actual value of mm_username so it should assigthat to mm_user anme that is not doing y ???????
Session("MM_UserAuthorization" = "admin"
session("fa" = ""
response.redirect "e-a-u.asp"
end if
%>
oy, i allready replied to this question on learningultradev.com
hope i got it right <img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>
With kind regards,
Dennis van Galen
Webmaster KPN Services
Financial and Information Services
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
<%
if request.querystring("un" <> "" then
varun = request.querystring("un"
varua = request.querystring("ua"
session("MM_username" = session("run" <- sets session"username" to be equal to session"run" now both have the same value
session("fa" = "admin2"
Session("MM_UserAuthorization" = varua
Session("MM_Username" = varun <- sets session"username" to be equal to varun ?! now session(MM_username" valude is overrided by varun so now both have the same value
if Session("MM_UserAuthorization" = "admin" then
response.redirect "admin_aera.asp"
end if
if Session("MM_UserAuthorization" = "Health professional" then
response.redirect "../members.asp"
end if
if Session("MM_UserAuthorization" = "hospital" then
response.redirect "../hospital_aera.asp"
end if
end if
if request.querystring("logback" = "1" then
session("run"= session("MM_username" <- now session run is equal to the actual value of mm_username so it should assigthat to mm_user anme that is not doing y ???????
Session("MM_UserAuthorization" = "admin"
session("fa" = ""
response.redirect "e-a-u.asp"
end if
%>