[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-modperl
Subject:    Re: Request for Information
From:       "dhaval gada" <dhavalgada () gmail ! com>
Date:       2006-08-31 20:38:07
Message-ID: 77fcf2ac0608311338rc00ef1co24b75435980c22f1 () mail ! gmail ! com
[Download RAW message or body]

Hi,
  My apologies. I did remove the leading/trailing spaces and it does'n't
throw any errors now. However, I cannot retrieve the stored data.

For eg:  I store $session{"visit"} = 1   when creating the session. However,
when I retrieve the session and try to print the value of
$session{"visit"}  it returns nothing.

  Storing a scalar value in %session is just for testing purpose. I intend
to store objects for my web application.

What could be the reason ???

Thanks & Best Regards,
Dhaval Gada.



On 8/31/06, Jonathan Vanasco <modperl-list@2xlp.com> wrote:
>
>
> On Aug 31, 2006, at 3:24 PM, dhaval gada wrote:
>
>
> > I checked the files created in the /tmp/sessions  directory. When I
> > tried to view the contents of the file named
> > "f92c58deb6047b12470d51f6e1767e8f ", using the vi editor, it gave
> > me the following message:
>
> On Aug 31, 2006, at 3:06 PM, Perrin Harkins wrote:
> > Did you look at line 40 to see what it does?  It's failing to validate
> > the session ID you passed in.  You might have some extra junk
> > characters
> > in there, like a line break at the end.
>
> Did you follow perrin's advice and strip leading/trailing whitespace?
>
>

[Attachment #3 (text/html)]

<div>Hi,</div>
<div>&nbsp; My apologies. I did remove the leading/trailing spaces and it does'n't \
throw any errors now. However, I cannot retrieve the stored data.</div> \
<div>&nbsp;</div> <div>For eg:&nbsp; I store <font \
color="#6600cc">$session{&quot;visit&quot;} = 1</font>&nbsp;&nbsp; when creating the \
session. However, when I retrieve the session and try to print the value of </div> \
<div><font color="#6600cc">$session{&quot;visit&quot;}</font>&nbsp; it returns \
nothing.<br>&nbsp;</div> <div>&nbsp;&nbsp;Storing a scalar value in %session&nbsp;is \
just for testing purpose. I intend to store objects for my web application.</div> \
<div>&nbsp;</div> <div>What could be the reason ???</div>
<div>&nbsp;</div>
<div>Thanks &amp; Best Regards,</div>
<div>Dhaval Gada.</div>
<div>&nbsp;</div>
<div><br>&nbsp;</div>
<div><span class="gmail_quote">On 8/31/06, <b class="gmail_sendername">Jonathan \
Vanasco</b> &lt;<a href="mailto:modperl-list@2xlp.com">modperl-list@2xlp.com</a>&gt; \
wrote:</span> <blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px \
0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>On Aug 31, 2006, at 3:24 PM, dhaval \
gada wrote:<br><br><br>&gt; I checked the files created in the \
/tmp/sessions&nbsp;&nbsp;directory. When I <br>&gt; tried to view the contents of the \
file named<br>&gt; &quot;f92c58deb6047b12470d51f6e1767e8f &quot;, using the vi \
editor, it gave<br>&gt; me the following message:<br><br>On Aug 31, 2006, at 3:06 PM, \
Perrin Harkins wrote: <br>&gt; Did you look at line 40 to see what it \
does?&nbsp;&nbsp;It's failing to validate<br>&gt; the session ID you passed \
in.&nbsp;&nbsp;You might have some extra junk<br>&gt; characters<br>&gt; in there, \
like a line break at the end.<br><br> Did you follow perrin's advice and strip \
leading/trailing whitespace?<br><br></blockquote></div><br>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic