Re: Cross Application Sesssion

2006-08-21 Thread Mandy Singh
:)

nate - i had already tried that.

basically, i use the same db as used by rdBloggery.

but my application runs in /app/ and the blog in /rdBloggery/

even wheni was storing sessions in the db, i was not able to auto log the person into rdBloggery if he already logged on in my application in /app/.

when i work off the computer at home it works, when i do this from office computer it doesn't.

i m going mad!! :)

thanks,
Mandy.
On 8/19/06, nate [EMAIL PROTECTED] wrote:
Mandy, that's because I wasn't on IRC ;-)in app/config/core.php, there is a setting called CAKE_SESSION_SAVE,
set that to 'database', and load the SQL fromapp/config/sql/sessions.sql into your database.Then, if you includethe same database in both applications, you should be able to sharesession data.

--~--~-~--~~~---~--~~
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  -~--~~~~--~~--~--~---


Re: Cross Application Sesssion

2006-08-21 Thread Mandy Singh
i m thinking of reading the chapter on plugins and see if i can move rdBloggery under /app/plugins though...

On 8/21/06, Mandy Singh [EMAIL PROTECTED] wrote:


:)

nate - i had already tried that.

basically, i use the same db as used by rdBloggery.

but my application runs in /app/ and the blog in /rdBloggery/

even wheni was storing sessions in the db, i was not able to auto log the person into rdBloggery if he already logged on in my application in /app/.

when i work off the computer at home it works, when i do this from office computer it doesn't.

i m going mad!! :)

thanks,
Mandy.

On 8/19/06, nate [EMAIL PROTECTED] wrote:
 
Mandy, that's because I wasn't on IRC ;-)in app/config/core.php, there is a setting called CAKE_SESSION_SAVE, 
set that to 'database', and load the SQL fromapp/config/sql/sessions.sql into your database.Then, if you includethe same database in both applications, you should be able to sharesession data.


--~--~-~--~~~---~--~~
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  -~--~~~~--~~--~--~---


Re: Cross Application Sesssion

2006-08-21 Thread AD7six

Hi Mandy,

Plugins will 'suffer' the same problem as a seperate app, I wrote a
short blog on the topic and how to work around it. It's possible that
the same approach would work for multiple apps, haven´t tried that.

http://www.noswad.me.uk/blogs/view/28

Cheers,

AD7six
PS. I´d welcome comments regarding any problems this may cause.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Cross Application Sesssion

2006-08-19 Thread nate

Mandy, that's because I wasn't on IRC ;-)

in app/config/core.php, there is a setting called CAKE_SESSION_SAVE,
set that to 'database', and load the SQL from
app/config/sql/sessions.sql into your database.  Then, if you include
the same database in both applications, you should be able to share
session data.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Cross Application Sesssion

2006-08-18 Thread maharajaMandy

Hi,

I have 2 apps -

1. /cake/app1/
2. /cake/app2/

In controller of app1 i set one variable in the session eg id=1

Then give a link to go to a page in /app2/

But, now session variable id is not available there.

Sometimes, it works. I am confused!

Is there some setting I need to change to make cross application
sesssions work over the SAME domain?

Please let me know.

Thanks,
Mandy.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Cross Application Sesssion

2006-08-18 Thread Mandy Singh
I would be really helpful to get an answer on this one.I even tried using the database option but somehow it just doesn't work.Basically, I am trying to log the user in in /app1/ and then connecting to /app2/ which is /rdBloggery/ and want him autologged in there.
Both apps are on the same domain but in diff folders under /cake/:(Mandy.

--~--~-~--~~~---~--~~
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  -~--~~~~--~~--~--~---


Re: Cross Application Sesssion

2006-08-18 Thread John Zimmerman [gmail]

You might hop on IRC for this one.  I am not sure many of us have
tried this before, but you should be able to find someone in the IRC
channel to give you a definitive answer.

On 8/18/06, Mandy Singh [EMAIL PROTECTED] wrote:
 I would be really helpful to get an answer on this one.

 I even tried using the database option but somehow it just doesn't work.

 Basically, I am trying to log the user in in /app1/ and then connecting to
 /app2/ which is /rdBloggery/ and want him autologged in there.

 Both apps are on the same domain but in diff folders under /cake/

 :(

 Mandy.

  


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---