# Storing "previous URL" into form Hidden field

**URL:** <https://forum.kirupa.com/t/storing-previous-url-into-form-hidden-field/247487>\
**Category:** Uncategorized\
**Created:** [December 24, 2007, 12:31pm UTC](https://forum.kirupa.com/t/storing-previous-url-into-form-hidden-field/247487 "2007-12-24T12:31:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![webmulgor](https://avatars.discourse-cdn.com/v4/letter/w/ed8c4c/32.png) [@webmulgor](https://forum.kirupa.com/u/webmulgor)\
**Post date:** [December 24, 2007, 12:31pm UTC](https://forum.kirupa.com/t/storing-previous-url-into-form-hidden-field/247487/1 "2007-12-24T12:31:34Z")

</div>

[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 **☹**. 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]
