rahul
rahul.warhekar at edisphere.com
Thu May 29 00:15:07 EDT 2008
hello all, what is the difference between deleting data from session variables and setting it to empty string? and if there is a difference then How to delete data from a session variable in mod_python. thanks -----Original Message----- From: mod_python-bounces at modpython.org [mailto:mod_python-bounces at modpython.org]On Behalf Of rahul Sent: Wednesday, May 28, 2008 5:27 PM To: Graham Dumpleton Cc: mod_python at modpython.org Subject: RE: [mod_python] problems in browser will deleting data from session['my_filter'] as i am using it will solve the problem of not able to remove value from session variable. -----Original Message----- From: Graham Dumpleton [mailto:graham.dumpleton at gmail.com] Sent: Wednesday, May 28, 2008 5:15 PM To: rahul Cc: mod_python at modpython.org Subject: Re: [mod_python] problems in browser You are not deleting data from session, you are setting it to empty string. That is not the same thing. Do you perhaps mean to use Python 'del' operator on session dictionary. Also, that isn't really a complete self contained example as I cant even see how you are validating whether it is doing what you want or not and thus how your criteria for success is being determined. So not really enough information to be able to help. BTW, using mod_python 3.3 probably will not help much, but it is always better to be using most up to date version. Older versions do have various bugs. Graham 2008/5/28 rahul <rahul.warhekar at edisphere.com>: > my code is in list.psp as > > <input style="Z-INDEX ;WIDTH :112px ;HEIGHT = 25px; background-color: > #666699; color: #ffffff;" type="submit" name="new_filter" value="Clear > Filter" class="buttonstyle" > onclick=submitForm('/edi/modules/reports/new.psp',myform,'mf');> > > if (session['my']=='my'): > session['my_filter'] = "" > session['user_query'] = "" > session['sql'] = "" > session['my'] = "" > session.save() > and the code in new.psp is, > > <%@ include file="../../config.psp" %> > <% > import Session > session['my']="my" > session['con'] = " where " > session['bool']="false" > session.save() > %> > still it is not working properly with internet explorer. > Does upgrading to mod_python 3.3.1. will solve the issue. > > > -----Original Message----- > From: Graham Dumpleton [mailto:graham.dumpleton at gmail.com] > Sent: Sunday, May 25, 2008 5:30 PM > To: rahul > Cc: mod_python at modpython.org > Subject: Re: [mod_python] problems in browser > > > Suggest you upgrade to mod_python 3.3.1. > > Also, as already requested, please post small self contained example > of code which triggers the issue. It is not sufficient to give an > english description of what you are doing as that isn't the same as > the actual code. Your code could have a readily identifiable mistake > in it, but we cannot tell you what it is if you will not show the > code. > > Graham > > 2008/5/25 rahul <rahul.warhekar at edisphere.com>: >> I am having Apache/2.0.55 (Win32) and mod_python 3.2.8 and i am using >> windows xp with Internet explorer 7.0.5730.11 >> and mozilla 2.0.0.14 >> >> actually what i am doing >> >> i ahve one variable as session['filter'] and on click of button i am >> deleting data of that session variable. >> and construct is on button click i call submitform("path") and do >> session['filter']="" and go back to previous page >> where i am displaying variables value >> but internet explorer only does it once after that it do not clear the >> displayed value while mozilla do it >> >> >> -----Original Message----- >> From: Graham Dumpleton [mailto:graham.dumpleton at gmail.com] >> Sent: Sunday, May 25, 2008 4:29 PM >> To: rahul >> Cc: mod_python at modpython.org >> Subject: Re: [mod_python] problems in browser >> >> >> For starters, post small self contained example of code which triggers >> the issue. >> >> Second, explain what your Apache/mod_python setup is. Ie., >> Windows/UNIX, winnt/prefork/worker MPM. >> >> Third show any debugging output you have which helps to explain the > problem. >> >> Without stuff like that, anyone trying to help would just be guessing. >> >> Graham >> >> 2008/5/25 rahul <rahul.warhekar at edisphere.com>: >>> hello all >>> >>> When i am using mozilla firefox browser my session variables are working >>> well >>> ie. when i delete data from session variable it gets properly deleted but >>> when i use >>> >>> Internet Explorer at first data get deleted but for second time it wont >>> works >>> so if any on has any information regarding this will be greatly >> appreciated >>> >>> thanks and regards >>> rahul >>> >>> _______________________________________________ >>> Mod_python mailing list >>> Mod_python at modpython.org >>> http://mailman.modpython.org/mailman/listinfo/mod_python >>> >> >> > > _______________________________________________ Mod_python mailing list Mod_python at modpython.org http://mailman.modpython.org/mailman/listinfo/mod_python
|