|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
javascript for checking userhi,
can any one tell me a javascript that can be called on mouseover event of a html link control . script can check from session either a user is login or not In the case of Login it will redirect to the given url. In the case of not Login it will prompt the user that u r not login kindly login. actually that link leads a user to Download Software. but this feature is only for registerd user. kindly help me. it will be best if u give me a script for it. Thanks Noor Why would need javascript when formsauthentication has methods for checking
and redirecting the user already. Show quote "noor" <noor***@sctbpo.com> wrote in message news:eiQvEf$BGHA.736@TK2MSFTNGP10.phx.gbl... > hi, > can any one tell me a javascript that can be called on mouseover event of > a > html link control . > script can check from session either a user is login or not > In the case of Login it will redirect to the given url. > In the case of not Login it will prompt the user that u r not login kindly > login. > > actually that link leads a user to Download Software. but this feature is > only for registerd user. > > kindly help me. it will be best if u give me a script for it. > Thanks > Noor > > You *never* want to trust the client/browser to validate authentication.
In the best case JavaScript might be turned of. In the worst case, someone has written their own browser or client to access your pages thereby bypassing your security. Show quote "noor" <noor***@sctbpo.com> wrote in message news:eiQvEf$BGHA.736@TK2MSFTNGP10.phx.gbl... > hi, > can any one tell me a javascript that can be called on mouseover event of > a > html link control . > script can check from session either a user is login or not > In the case of Login it will redirect to the given url. > In the case of not Login it will prompt the user that u r not login kindly > login. > > actually that link leads a user to Download Software. but this feature is > only for registerd user. > > kindly help me. it will be best if u give me a script for it. > Thanks > Noor > > |
|||||||||||||||||||||||