• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 981
  • Last Modified:

remembering username & password html5 iphone web app

Hello Experts

I am writing a iphone specific web app using the iwebkit 5.04 framework, with the first screen being a login screen. What I want is when the 'Remember me' checkbox is on, for the login details to be remembered the next time app is opened from the homescreen. Currently the user has to enter the details everytime the app is opened. I have been reading lots of tutorials and it would seem localstorage is the best way to do it, but cannot find anything close to what I want. I am only just learning this html5 / iphone specific stuff so if anyone can help it would be much appreciated.

<form action="" id="frmlogin" method="post" name="frmlogin" enctype="application/x-www-form-urlencoded">
	<ul class="pageitem">
		<li class="bigfield"><input placeholder="Account No" id="txtaccname" name="txtaccname" type="text" autocapitalize="off" value=""/></li>             
		<li class="bigfield"><input placeholder="Username" id="txtusername" name="txtusername" type="text" autocapitalize="off" value="" /></li>
		<li class="bigfield"><input placeholder="Password" id="txtpassword" name="txtpassword" type="password" /></li>
		<li class="checkbox"><span class="name">Remember Me</span><input id="remember" name="remember" type="checkbox" value=""/></li>
	</ul>
	<ul class="pageitem">
    	<li class="button"><input name="submit" id="submitbtn" type="submit" value="Login" value="" /></li>
    </ul> 
</form>

Open in new window

0
dovercomputers
Asked:
dovercomputers
1 Solution
 
dovercomputersAuthor Commented:
Used cookies in the end when processing the login. Works fine so I'll stick with that for now.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now