See these 2 threads

http://groups.google.com/group/cake-php/browse_thread/thread/5e89ca413936848f/3a8a81df3be0a78e?lnk=gst&q=non+existent+image+session+#3a8a81df3be0a78e

http://groups.google.com/group/cake-php/browse_thread/thread/7d84b9a6e14b6f9b/8babd55b4d02eb3c?lnk=gst&q=session+image#8babd55b4d02eb3c

On Mar 10, 1:34 am, mixersoft <[EMAIL PROTECTED]> wrote:
> I think I have isolated a Session problem in my code, but I don't
> understand what's happening or how to fix it. Can someone offer
> suggestions?
>
> I have an action/view that shows a page full of thumbnails. If all the
> thumbnail files exist, it loads just fine and my Session is good.
> HOWEVER, if the thumbnail file does NOT exist, I use this
> ErrorDocument redirect in my .htaccess
>
> .htaccess:
>    ErrorDocument 404 /cake12/services/render_image
>
> which
> a) redirects to a controller/action that automatically renders the
> thumbnail file with ImageMagick, and then
> b) returns a redirect to reload the original image file.
> The file is auto-rendered properly.
>
> My problem is that AFTER I auto-render (and redirect the page to
> reload the newly rendered thumbnails, my Session gets erased. Here is
> an example:
>
> BTW, I am using $this->Session->read(). Can anyone help me figure out
> what is happening?
>
> THanks.
>
> GOOD SESSION:
> Session=Array
> (
>     [Config] => Array
>         (
>             [userAgent] => 91614761b97d914db4f13fc87251f5d6
>             [time] => 1205162087
>             [rand] => 3585
>             [timeout] => 10
>         )
>
>     [Current] => Array
>         (
>             [bundle_id] => 25
>             [owner_id] => 1
>         )
> )
>
> AFTER LOADING PAGE WITH AN AUTO-RENDERED THUMBNAIL:
> Session=Array
> (
>     [Config] => Array
>         (
>             [userAgent] => 91614761b97d914db4f13fc87251f5d6
>             [time] => 1205162130
>             [rand] => 3585
>             [timeout] => 10
>         )
>
>     [Current] => Array
>         (
>             [bundle_id] => 25
>             [owner_id] => 1
>         )
>
> )
>
> THE NEXT PAGELOAD HAS A DIFFERENT SESSION
>
> Session=Array
> (
>     [Config] => Array
>         (
>             [userAgent] => 91614761b97d914db4f13fc87251f5d6
>             [time] => 1205162163
>             [rand] => 31251
>             [timeout] => 10
>         )
>
> )
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to