domingo, 11 de enero de 2009

Autenticación por Formularios en ASP.Net y C#

Quiero hacer un paréntesis, este blog tiene ya mas de DOS AÑOS en línea con un Promedio de Publicaciónes de 3 Post por Mes, me siento contento al saber que mas de un Post publicado aquí le haya servido a alguien. Gracias a todos los internautas (Programadores, Diseñadores, público en general).

Seguiemos entonces, existen TRES tipos de Autenticaciones en ASP.Net (Windows Mode, Con Credenciales de ASP.Net que es el Passport, y la de Formularios) en este tema explicaré como autentificarse por formularios.

Para empezar modificaremos el archivo Web.config de nuestro proyecto, en la etiqueta de Auhentication mode... lo cambiaremos por lo siguiente :

=".ASPXAUTH" loginUrl="login.aspx" protection="All"
timeout="60"/>


.ASPXAUTH: Es el tipo de cifrado de datos.
login URL: la pagina que servirá como pagina para autentificarse
protection: Todas las configuraciones por default
timeout: Tiempo de caducidad de la sesión


Haremos el login, con las herramientas de formulario del Visual Studio, yo ya tengo uno hecho:

Cualquier petición a una página si el usuario no esta autentificado se redireccionará automáticamente a esta página de login para validarse como usuario.

7 comentarios:

Anónimo dijo...

QUe onda Broo...visita mi Flog....http://www.metroflog.com/---_Mozilla_firefox_---

Anónimo dijo...

Hoola Adrian :) fue muy interesante su espacio, le agradeceria y a la vez seria muy
grato si podriamos realizar intercambio de enlaces. Nuestra pagina para que ustedes nos enlacen es http://www.easycreate.es/ titulo: Diseño web
y nuestra web para intercambios es http://www.easycreate.es/links.asp
Espero su respuesta, muchas gracias seo@easycreate.es

Anónimo dijo...

Gracias ha sido muy util la informacion? =)=)=)=)=)=)!!!!

@dryancito dijo...

De nada, estamos para servir, cualquier cosa publiquen sus comentarios.Adrymvweb

Anónimo dijo...

Oye kaon, necesito un favor, de eso con un control de usuario, cuando puedes, y ya vemos como nos arreglamos vale, santiago

Anónimo dijo...

What the heck i just read? The initial idea is to check with the physician previous to using this
product or service. The extract of Hemorrhoids Treatment Cure can be found as capsules and
products and asking a doctor will give you a transparent knowledge
of the fact will it fit your needs or not. This product normally satisfies the requirements of
the folks but exclusions are always there. So, you have to just be sure you aren't the
main one who are unable to utilize this solution. Another important thing is
regarding the medication dosage. You have to consult your
medical professional in regards to the absorption and be precise about this authentic Hemorrhoids Treatment Cure.

WOW.Nice read here. The actual key to how the product gets results is it is really a dual-action diet solution, and
therefore it operates as being an appetite reducing drug plus
a "fat burner". This really suggests that it oxidizes fat cells making
use of anti-oxidants, and also ends up in more energy for yourself - although only if you know how to take authentic Hemorrhoids Treatment Cure in the correct fashion.Almost all diet products
on the market today are meant all over reving up your
metabolic process, which is simply not safe for some - and
that is why many people are deciding to order Hemorrhoids Treatment Cure extract instead.



my webpage ... hemorrhoids thrombosis bleeding

Anónimo dijo...

To Get A category of four that number would be $44,100.

Our anatomical bodies were designed for action,
so can get on your mark, get set and GO! Most hunger pains are actually thirst pains (your mind
can't tell the difference).

my web page :: diabetes diet information in spanish