Is there a way to configure the timeout value of the __VIEWSTATE hidden variable

A developer found a work-around that allowed him to use the __VIEWSTATE parameter to pass login information from their domain to ours and then bypass our login.  See code below:

-------------------------------
 <form name="_ctl0" method="post" target="_blank"
action="http://www.scitationreports.org/Login.aspx?ReturnUrl=default.asp
x"
id="_ctl0">

   <input type="hidden" name="__VIEWSTATE"
value="dDwtNjgyOTcyODA0OztsPFJlbWVtYmVyTWU7Pj4MNmkUWpCOIvjPMIfBnAch6P/0n
g==" />

   <input type="hidden" name="txtUsername" value="<%=username%>"
id="txtUsername" />
   <input type="hidden" name="txtPassword" value="<%=password%>"
id="txtPassword" />
   <input class="btn" onmouseover="this.className='btnhov'"
onmouseout="this.className='btn'" type="submit" name="_ctl3" value="View Usage Reports" />
   <!--<a href="#" onClick="document._ctl0.submit()">Login to see Report</a><br><br>-->
   </form>
-------------------------------

The above workaround would work for approximately a month at which point the _VIEWSTATE value would need to be updated.  But when we upgraded from Windows 2000/IIS5 to Win2003/IIS6 the developer is now having to change the value daily.

We are trying to find the easiest way to accomodate this requirement without any code changes to our site.  Is there a way we can increase the life of the __VIEWSTATE variable?  

Thanks
LVL 1
TheShanerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mrcoffee365Commented:
As far as I can tell, ViewState is a page variable that has no relation to session timeout.  You can write code which attaches ViewState to the Session State, and change your ASPX pages to get ViewState from the session.

There are occasions in IIS6 when the saved ViewState on the server will go away -- when the application pool is refreshed.  That might be what you're seeing.  See this article from Microsoft on possible causes of invalid ViewState (you don't give the error that your developer sees, so I can't tell if this is the case for you):
http://support.microsoft.com/kb/555353
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.