Help answer threads with 0 replies.
Go Back > Blogs > Pyplate
User Name


This blog is about the development of my various Linux based web sites, starting with, Banoffee Pi Server and Linux Web Servers.
Rate this Entry

Working on a login system for my CMS

Posted 06-18-2013 at 02:07 PM by Pyplate
Updated 06-18-2013 at 02: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:

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:

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 920 Comments 0
« Prev     Main     Next »
Total Comments 0




All times are GMT -5. The time now is 07:12 PM.

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