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"

what i am trying to get is the value of session("MM_username"


but it give me the value of session("MM_username"

can any body help me ??
suhailkaleem
<%
if request.querystring("un"

varun = request.querystring("un"

varua = request.querystring("ua"

session("MM_username"


session("fa"

Session("MM_UserAuthorization"

Session("MM_Username"

if Session("MM_UserAuthorization"

response.redirect "admin_aera.asp"
end if
if Session("MM_UserAuthorization"

response.redirect "../members.asp"
end if
if Session("MM_UserAuthorization"

response.redirect "../hospital_aera.asp"
end if
end if
if request.querystring("logback"

session("run"



Session("MM_UserAuthorization"

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"

varun = request.querystring("un"

varua = request.querystring("ua"

session("MM_username"


session("fa"

Session("MM_UserAuthorization"

Session("MM_Username"


if Session("MM_UserAuthorization"

response.redirect "admin_aera.asp"
end if
if Session("MM_UserAuthorization"

response.redirect "../members.asp"
end if
if Session("MM_UserAuthorization"

response.redirect "../hospital_aera.asp"
end if
end if
if request.querystring("logback"

session("run"


Session("MM_UserAuthorization"

session("fa"

response.redirect "e-a-u.asp"
end if
%>