Cookies remember

From Openmoko

Revision as of 11:50, 13 May 2009 by Ficik (Talk | contribs)

Jump to: navigation, search

None of current browsers supports saving cookies..

Workaround

1) create page login.html in /var/www/ with following code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>HOME PAGE</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />

</head>
<body>
<center>
<!-- Gmail (simple view) -->
<form id="gaia_loginform" method="post" action="https://www.google.com/accounts/ServiceLoginAuth?service=mail">
<input id="continue" type="hidden" value="http://mail.google.com/mail/h/dcxp2pnlukpz/?zy=a&f=1" name="continue"/>
<input id="service" type="hidden" value="mail" name="service"/>
<input id="rm" type="hidden" value="false" name="rm"/>
<input id="ltmpl" type="hidden" value="default" name="ltmpl"/>
<input id="ltmpl" type="hidden" value="default" name="ltmpl"/>
<input id="scc" type="hidden" value="1" name="scc"/>
<input type="hidden" value="_sGnRcXiPVM" name="GALX"/>
<input id="Email" class="gaia le val" type="hidden" value="YOUR_GOOGLE_ACCOUNT" name="Email"/>
<input id="Passwd" class="gaia le val" type="hidden" value="YOUR_PASSWORD"name="Passwd"/>
<input class="gaia le button" type="submit" value="Gmail" name="signIn"/>
</form>
<hr/>
<!-- Remeber the milk -->
<form class="f" method="post" action="https://www.rememberthemilk.com/auth.rtm">
<input id="username" type="hidden" name="username" value='YOUR_RTM_ACCOUNT'/>
<input id="password" type="hidden" name="password" value='YOUR_PASSWORD'/>
<input class="s" type="submit" value="Remember the milk" name="login"/>
<input type="hidden" value="1" name="ig"/>
<input type="hidden" value="QLnY1BQ2GXI/lib/libcore.js,mCNpDiXL1rw/lib/libdynamic-height.js" name="libs"/>
<input type="hidden" value="http://www.google.cz" name="parent"/>
<input type="hidden" value="126" name="mid"/>
<input type="hidden" value="1" name="up_showNoDue"/>
</form>
<hr/>
<!-- Facebook -->
<form action="https://login.facebook.com/login.php?iphone=1&next=http%253A%252F%252Fiphone.facebook.com%252F" method="post" class="bigTextForm">
      <input type="hidden" name="email" value="YOUR_FACEBOOK_ACCOUNT" />
      <input type="hidden" name="pass" value='YOUR_PASSWORD' />
      <input type="hidden" name="next" value="http://iphone.facebook.com/">
      <input type="submit" name="login" value="iphone Facebook" class="bigButton" />
</form>
<hr/>
<form action="https://login.facebook.com/login.php?iphone=1&next=http%253A%252F%252Fm.facebook.com%252F" method="post" class="bigTextForm">
      <input type="hidden" name="email" value="YOUR_FACEBOOK_ACCOUNT" />
      <input type="hidden" name="pass" value='YOUR_PASSWORD' />
      <input type="hidden" name="next" value="http://m.facebook.com/">
      <input type="submit" name="login" value="mobile Facebook" class="bigButton" />
</form>

</center>
</body>
</html>

2) Type your username and password instead of "YOUR_*_ACCOUNT" and "YOUR_PASSWORD". Yes it terrible security risk, keeping your password in plain text. If you have better idea share with us.. I'm sick of retyping my password several times a day.

3) And make this page homepage of your favorite browser. You'll be able login to your accounts with one click.


  • To get https pages available follow this howto. (Works for webkit browsers)
Personal tools

None of current browsers supports saving cookies..

Workaround

1) create page login.html in /var/www/ with following code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>HOME PAGE</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />

</head>
<body>
<center>
<!-- Gmail (simple view) -->
<form id="gaia_loginform" method="post" action="https://www.google.com/accounts/ServiceLoginAuth?service=mail">
<input id="continue" type="hidden" value="http://mail.google.com/mail/h/dcxp2pnlukpz/?zy=a&f=1" name="continue"/>
<input id="service" type="hidden" value="mail" name="service"/>
<input id="rm" type="hidden" value="false" name="rm"/>
<input id="ltmpl" type="hidden" value="default" name="ltmpl"/>
<input id="ltmpl" type="hidden" value="default" name="ltmpl"/>
<input id="scc" type="hidden" value="1" name="scc"/>
<input type="hidden" value="_sGnRcXiPVM" name="GALX"/>
<input id="Email" class="gaia le val" type="hidden" value="YOUR_GOOGLE_ACCOUNT" name="Email"/>
<input id="Passwd" class="gaia le val" type="hidden" value="YOUR_PASSWORD"name="Passwd"/>
<input class="gaia le button" type="submit" value="Gmail" name="signIn"/>
</form>
<hr/>
<!-- Remeber the milk -->
<form class="f" method="post" action="https://www.rememberthemilk.com/auth.rtm">
<input id="username" type="hidden" name="username" value='YOUR_RTM_ACCOUNT'/>
<input id="password" type="hidden" name="password" value='YOUR_PASSWORD'/>
<input class="s" type="submit" value="Remember the milk" name="login"/>
<input type="hidden" value="1" name="ig"/>
<input type="hidden" value="QLnY1BQ2GXI/lib/libcore.js,mCNpDiXL1rw/lib/libdynamic-height.js" name="libs"/>
<input type="hidden" value="http://www.google.cz" name="parent"/>
<input type="hidden" value="126" name="mid"/>
<input type="hidden" value="1" name="up_showNoDue"/>
</form>
<hr/>
<!-- Facebook -->
<form action="https://login.facebook.com/login.php?iphone=1&next=http%253A%252F%252Fiphone.facebook.com%252F" method="post" class="bigTextForm">
      <input type="hidden" name="email" value="YOUR_FACEBOOK_ACCOUNT" />
      <input type="hidden" name="pass" value='YOUR_PASSWORD' />
      <input type="hidden" name="next" value="http://iphone.facebook.com/">
      <input type="submit" name="login" value="iphone Facebook" class="bigButton" />
</form>
<hr/>
<form action="https://login.facebook.com/login.php?iphone=1&next=http%253A%252F%252Fm.facebook.com%252F" method="post" class="bigTextForm">
      <input type="hidden" name="email" value="YOUR_FACEBOOK_ACCOUNT" />
      <input type="hidden" name="pass" value='YOUR_PASSWORD' />
      <input type="hidden" name="next" value="http://m.facebook.com/">
      <input type="submit" name="login" value="mobile Facebook" class="bigButton" />
</form>

</center>
</body>
</html>

2) Type your username and password instead of "YOUR_*_ACCOUNT" and "YOUR_PASSWORD". Yes it terrible security risk, keeping your password in plain text. If you have better idea share with us.. I'm sick of retyping my password several times a day.

3) And make this page homepage of your favorite browser. You'll be able login to your accounts with one click.


  • To get https pages available follow this howto. (Works for webkit browsers)