Solved

remembering username & password html5 iphone web app

Posted on 2011-02-27
1
937 Views
Last Modified: 2012-05-11
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
Comment
Question by:dovercomputers
1 Comment
 

Accepted Solution

by:
dovercomputers earned 0 total points
ID: 34993726
Used cookies in the end when processing the login. Works fine so I'll stick with that for now.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now