Storing "previous URL" into form Hidden field

[RIGHT][SIZE=1][COLOR=gray]storing “previous URL” into form Hidden field.[/COLOR][/SIZE][/RIGHT]
[SIZE=1][/SIZE]
[SIZE=1]"Many of my pages are secured only for members…***suppose if session expires from page abc.asp .***.then page is redirected to common log.asp[/SIZE]
[SIZE=1][/SIZE]
[SIZE=1]This log.asp file asks for userid & Password and then member moves to main page :frowning: . Actually i want user to move to his previous page (say abc.asp) where actually he was working.[/SIZE]
[SIZE=1][/SIZE]
[SIZE=1]I think i am able to explain my problem.[/SIZE]
[SIZE=1][/SIZE]
[SIZE=1][/SIZE]
[SIZE=1][/SIZE]
[SIZE=1][i am using asp/vbscript and javascript, Moreover… replies for any language is welcome][/SIZE]

[SIZE=1]wat i am trying at present is that…if i am able to store the “previous url” into the hidden field (when userid and password is asked in log.asp). then my codes will work.[/SIZE]
[SIZE=1][/SIZE]
[SIZE=1][/SIZE]
[SIZE=1]thanks (advance).[/SIZE]