Updated: (MODPYTHON-59) Add get_session() method to request object
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Mod-Python > Updated: (MODPYTHON-59) Add get_session() method to request object




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Updated: (MODPYTHON-59) Add get_session() method to request object  
Graham Dumpleton (JIRA)


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-09-05 12:46 PM

[ http://issues.apache.org/jira/brows...HON-59?page=all ]

Graham Dumpleton updated MODPYTHON-59:
--------------------------------------

Attachment: Session.py.diff.txt

For posterity, attaching patch for an alternate way of dealing with this pro
blem of locked Session objects and req.internal_redirect(). This actually av
oids any changes to the request object itself, with all code changes in Sess
ion code. This was presente
d on developers mailing list. See:

http://www.mail-archive.com/python-...g/msg00254.html

Experimentation with this idea still needed.

> Add get_session() method to request object
> ------------------------------------------
>
>          Key: MODPYTHON-59
>          URL: http://issues.apache.org/jira/browse/MODPYTHON-59
>      Project: mod_python
>         Type: New Feature
>   Components: core
>     Versions: 3.3.0
>  Environment: All
>     Reporter: Jim Gallacher
>  Attachments: Session.py.diff.txt
>
> Users will get session instances by calling req.get_session(). If a session alread
y exists it will be returned, otherwise a new session instance will be created. Sess
ion configuration will be handled using apache directives rather than within their c
ode





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 08:00 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register