0 Replies - 10364 Views - Last Post: 26 January 2011 - 03:43 AM Rate Topic: -----

#1 MontSta   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 17-December 10

asp best way to redirect & Security

Posted 26 January 2011 - 03:43 AM

Basically I have written a login script, that will place an 'auth' key of the person's relative ID key into a
   Session["Auth"] = id.ToString(); 

id being the Current ID of the user logging in.

and then I would obviously retrieve the current id on the next page, and place it into my users class.

so I was wondering one of two things,

Firstly is this way secure or is it prone to something similar to php injection ?

Secondly if using
 Response.Redirect("login.aspx"); 


sort of lines, is there a way to redirect back to the restricted page if the login is correct ?

regards,
MontSta^

Is This A Good Question/Topic? 0
  • +

Page 1 of 1