• Home
  • Most Popular
  • Submit
  • About Us
  • Contact Us

Softpile

Free Downloads

Categories
  • Home
  • Most Popular
  • Communications
  • Desktop
  • Games & Entertainment
  • Graphic Apps
  • Network & Internet
  • Security & Privacy
  • System Utilities
Alternative to itextsharp 2022.11.10347
IronPDF offers an itextsharp alternative for HTML to PDF conversion with C# code examples, documentation, and ...
VShell Server for Linux and Mac 4.8
VShell is a versatile and secure file transfer server that supports multiple protocols and is compatible ...
PDF Studio PDF Editor for Linux 2022
PDF Studio is a cost-effective PDF editor that delivers full compatibility with the PDF Standard. It's ...
VQ Probe for Linux 1.5
VQ Probe is a comprehensive software tool that enables objective and subjective video quality analysis. The ...
Resilient Server 2.3
This Debian GNU/Linux (Buster) based software has a customized partitioning scheme that enhances robustness against filesystem ...
Valentina Studio for Linux 9.6
Valentina Studio is a cross-platform GUI manager for Mac, Windows, and Linux. It allows users to ...
VPN Lifeguard for Linux 1.0.58
The software monitors VPN connection and automatically terminates apps during connection loss, re-establishes the connection and ...
G_Viewer 0.84
G_Viewer is a Linux software that serves as both a file system and photo/image viewer. It ...
Checksome File Hash Tool for Linux 1.1
This software allows for the generation and verification of file hashes. It is a quick and ...
KeyWrangler Password Manager for Linux 1.2
A password management software that is secure, offline and extensible. It offers military-grade encryption to protect ...
Home Linux cookiesession Download

cookiesession

November 10, 2009
This software provides a secure method for storing Django session data within cookies.
Version 0.1
License Other
Platform Linux
Supported Languages English
Homepage code.google.com
Developed by Justin Quick
If you're looking for a middleware alternative to django.contrib.sessions.middleware.SessionMiddleware, you can opt for cookiesession. This software package features a drop-in replacement middleware module designed to store all session data on a browser cookie instead of a database. Thanks to cookiesession, you can prevent users from tampering with session data as they interact with your web application.

The original code was based on a snippet from Christopher Lenz and was later improved with several encoding steps. The session dictionary undergoes a three-step process consisting of JSON conversion, SHA1 hashing with the site's SECRET_KEY, and concatenation of the JSON and SHA1 hash. The concatenated package is then gzipped and base64 encoded to produce the end result.

When decoding a session cookie, the process reverses with the cookie getting base64 decoded and ungzipped before splitting into the JSON data and SHA1 hash. The package then generates a new SHA1 hash from the JSON and compares it against the SHA1 hash from the cookie. If the hashes match, the JSON data is converted back into a Python object and returned to the user. If they don't match, a SuspiciousOperation exception is raised.

Two management commands come with cookiesession to simplify debugging from an administrative standpoint. The first of these, called 'decode_session_cookie', is called as './manage.py decode_session_cookie' and prints the keys and values of the session dictionary. The second is the 'encode_session_cookie' command used to encode key-value arguments into a cookie for manual insertion in your browser for testing purposes. This command must be called as './manage.py encode_cookie key1=value key2=value'.
What's New

Version 0.1: N/A

Free Download 493K
312
  • Share on:

Most Popular

  1. Quicksilver Forums 1.4.2
    155
  2. Dvgrab 3.4
    95
  3. DynVPN 1.0
    82
  4. CherryTV 0.1
    80
  5. SlideMap 1.2.2
    75
  6. porm r2
    70
  7. Hills 2.0
    70
  8. crick-info 1.0
    69
  9. fuseftp 0.8
    68
  10. Swiftfox 3.0b5pre-2
    67

Related Downloads

Phone for voice modem
"Phone for voice modem" is a basic chat program that enables the ...
Issue Tracker Tracker
Issue Tracker Tracker is a web-based tool for tracking starred issues on ...
libpseudo
Libpseudo is a thread-safe messaging library that allows for easy communication between ...
ESC/Java2
ESC/Java2 is a software tool that checks Java programs for common programming ...
THREDDS
THREDDS project develops middleware that connects data providers and data users, closing ...
BitDefender FE
BitDefender FE acts as a graphical user interface for BitDefender Antivirus Console, ...
onepad
OnePad provides a suite of software programs that enable users to encrypt ...
Salix OS
A Slackware-based Linux distribution.
Silicon
Auto Image Mounter is a software that automatically mounts disk images in ...
AsciiDoc Website Builder
Awb is a python-based tool that enables users to easily create websites ...
Copyright © 1999-2025 Softpile Free Downloads
  • Most Popular
  • Submit
  • About Us
  • Contact Us
  • Privacy Policy
  • Disclaimer
  • Terms of Use

Can we use your data to tailor ads for you?

Our partners will collect data and use cookies for ad personalization and measurement.

By choosing "I agree", closing this pop-up or clicking on any element on the page, you agree to the use of cookies to help us provide you with a better user experience.

Learn how Softpile and our partners collect and use data.

You can change your choice at any time in our privacy center.

Cookie Settings

Our website stores four types of cookies. At any time you can choose which cookies you accept and which you refuse. You can read more about what cookies are and what types of cookies we store in our Cookie Policy.

are necessary for technical reasons. Without them, this website may not function properly.

are necessary for specific functionality on the website. Without them, some features may be disabled.

allow us to analyse website use and to improve the visitor's experience.

allow us to personalise your experience and to send you relevant content and offers, on this website and other websites.