G
Guest
Hello
I'm just wondering wich might be the best practice for realizing a login
system.
At the moment im having a object of self written type 'user' wich carrys
user data like name, email and a bool for 'loggedin'. I pass this object via
session.
This brings me to the point where if have at the very top of my aspx-site a
if-statement, wich returns a "Sorry, you are not logged in!" in case of
failed login and a very large else, wich contains the whole site, in case of
success.
Beside the way I did the securtiy aspect, I really dont like to have the
whole content in a: else { .. my whole site ... }
Is there a different way wich i just dont see?
Hope you get my point.
Thx so far!
yours erich
I'm just wondering wich might be the best practice for realizing a login
system.
At the moment im having a object of self written type 'user' wich carrys
user data like name, email and a bool for 'loggedin'. I pass this object via
session.
This brings me to the point where if have at the very top of my aspx-site a
if-statement, wich returns a "Sorry, you are not logged in!" in case of
failed login and a very large else, wich contains the whole site, in case of
success.
Beside the way I did the securtiy aspect, I really dont like to have the
whole content in a: else { .. my whole site ... }
Is there a different way wich i just dont see?
Hope you get my point.
Thx so far!
yours erich