I saw this example about storing cookie login information.
http://eisabainyo.net/weblog/2009/02/20/store-login-information-in-cookie-using-jquery/
Tried it but it can't seem to get it to work. I have to connect, and I do not understand what is wrong here.
This page is Login.aspx, which points to AccountMenu.aspx
EDIT THIS FOR DEMO, TESTS YOU KNOW TO CALL THIS. this site will never be online. I KNOW that this is not a way to do this. I am looking for help to solve my problem, not for people who tell me that this is a bad design.
(...)
<div data-role="content"> <form action="AccountMenu.aspx" method="post" id="login"> <label for="email">Email</label> <input type="text" id="email" name="email"/> <label for="password"><%= GetLabel("password") %></label> <input id="password" type="password" name="password" /> <div data-role="fieldcontain"> <fieldset data-role="controlgroup"> <input type="checkbox" name="remember" id="remember" class="custom" checked="true" /> <label for="remember">Remember me ?</label> </fieldset> </div> <input type="hidden" name="submit" value="submitted" /> <button type="submit" name="submit" id="submit" data-theme="a" value="<%= GetLabel("new-login") %>" ></button> <button type="button" disabled="disabled" data-theme="a" value="<%= GetLabel("new-account") %>"></button> </div> </form> <script type="text/javascript"> if ($('#remember').attr('checked')) { var email = $('#email').attr("value"); var password = $('#password').attr("value"); </script>
source share