LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Blogs > Pyplate
User Name
Password

Notices

This blog is about the development of my various Linux based web sites, starting with raspberrywebserver.com, Banoffee Pi Server and Pyplate Python SQlite CMS.
Rate this Entry

Working on a login system for my CMS

Posted 06-18-2013 at 03:07 PM by Pyplate
Updated 06-18-2013 at 03:08 PM by Pyplate (Fixed a typo)
Tags cms, cookies, python

I got the load balancer working pretty easily. The changes to apache2.conf are pretty straight forwards.

I'll do a detailed write up on that at some point, but in the mean time, here are two sites that have useful information on load balancing:
https://blogs.oracle.com/oswald/entr...balancing_with
http://www.rackspace.com/knowledge_c...comment-242370

I haven't put the load balancer in place yet because I'm not getting enough traffic to really need it. I also have to set up a method of synchronizing several servers before I can use the load balancer. I think I'll use Samba and rsync for this.

I've spent most of today figuring out how to implement a login system for the CMS I'm writing. I've written some code to create a session id and store it in a cookie. When pages in the admin category are visited, the server checks to see if the user has a cookie with a valid session id. If they have the cookie, the page is served. If they don't, they're redirected to a login page.

These sites have been useful in learning about cookies:
http://webpython.codepoint.net/cgi_set_the_cookie
http://dev.fyicenter.com/Interview-Q...eb_python.html

Tomorrow I'm going to figure out how to store encrypted passwords and associate them with a session id. This would probably be easy if my CMS used an SQL database, but I've been trying to avoid the over head of using SQL (and I don't know how to use SQL). Once I've finished the login system, I can focus on developing the back end of the CMS.
Posted in Uncategorized
Views 585 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 05:13 PM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration