hey,
are you doing a $this->redirect(); (or anything like that) in the same
action where you set your session-variables?! that was the problem I
had. I solved it by setting the session-variables in a different
action.

da_student

On Mar 29, 7:11 pm, BC <[EMAIL PROTECTED]> wrote:
> Hey all,
>
> I'm having an odd problem where session variables set in the
> controller only stay set for the action in which they're set. I have a
> three-part form for entering properties of molten salts, and I'd to
> use PHP's session to store the data as I go. Now, I've read a number
> of topics on the matter here, and following those recommendations,
> I've got my CAKE_SECURITY set to medium and AUTO_SESSION is true
> (which I verified by throwing in session_start() at the top of
> default.thtml and getting a redundant session_start warning). I've
> tried using both setting the session variables directly --
> $_SESSION['Salts']['Salt'] = $this->data['Salt'] -- and using Cake's
> methods -- $this->Session->write('Salts.Salt', $this->data['Salt']) --
> but to no avail.
>
> Now, I don't have access to php.ini or httpd.conf (university's
> servers), but in another application I hand-coded, I've successfully
> used sessions in this matter, so I'm fairly sure there aren't any
> problems with shoddy configurations.
>
> Any suggestions/ideas would be greatly appreciated, or if I missed a
> topic in my searching, a link would do just fine :)
>
> Thanks!
> Brian

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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