Re: Question about how manage particular data in session

2009-05-15 Thread byqsri
I identify the service by url but only at the access point of service but in the subsequent action I can't identify the service by url unless I keep the service_id in the url (for example in GET) but I would like to avoid that otherwise I have to review all code On 15 Mag, 03:40, "Dr. Loboto" w

Re: Question about how manage particular data in session

2009-05-14 Thread Dr. Loboto
Service should be identified by URL. Session should only identify user, regardless of service. On May 14, 6:17 pm, byqsri wrote: > Why the design of such application > is wrong initially? > How can I manage many services from a single portal? > > On 14 Mag, 10:15, "Dr. Loboto" wrote: > > > Yes,

Re: Question about how manage particular data in session

2009-05-14 Thread byqsri
Why the design of such application is wrong initially? How can I manage many services from a single portal? On 14 Mag, 10:15, "Dr. Loboto" wrote: > Yes, there are a lot of problems as whole design of such application > is wrong initially. > > On May 14, 2:25 pm, byqsri wrote: > > > And you supp

Re: Question about how manage particular data in session

2009-05-14 Thread Dr. Loboto
Yes, there are a lot of problems as whole design of such application is wrong initially. On May 14, 2:25 pm, byqsri wrote: > And you suppose that in a page I have some simultaneous  ajax call? > With this system I lost the right referer whene these ajax calls > happen > > On 14 Mag, 09:21, byqsr

Re: Question about how manage particular data in session

2009-05-14 Thread byqsri
And you suppose that in a page I have some simultaneous ajax call? With this system I lost the right referer whene these ajax calls happen On 14 Mag, 09:21, byqsri wrote: > Ok > But you suppose that user (with page1 and page2 opened) clicks another > link on page1 that opens page3 how can I to

Re: Question about how manage particular data in session

2009-05-14 Thread byqsri
Ok But you suppose that user (with page1 and page2 opened) clicks another link on page1 that opens page3 how can I to know that page3 is relative to the service of page1 (in session I have "page2" => $service_id and not "page1" => $service_id ) On 14 Mag, 05:02, "Dr. Loboto" wrote: > Example of

Re: Question about how manage particular data in session

2009-05-13 Thread Dr. Loboto
Example of this approach: 1. User visit index page and click on some "page1" link. You receive request for that "page1" - you know service_id (for example it is 5) and referer points to "index", so you save initial "page1" => $service_id to session. 2. On that page user follow next link "page2". Y

Re: Question about how manage particular data in session

2009-05-13 Thread Miles J
Are you referring tabs, like in firefox tabs, or tabs within the website? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe

Re: Question about how manage particular data in session

2009-05-13 Thread byqsri
Sorry but in this way I must keep in session all pages the user load with relative service_id? On 13 Mag, 05:34, "Dr. Loboto" wrote: > You should save service_id in session as associative array: > current_url => service_id. When your controller/action is requested, > search service_id in session

Re: Question about how manage particular data in session

2009-05-12 Thread Dr. Loboto
You should save service_id in session as associative array: current_url => service_id. When your controller/action is requested, search service_id in session by $this->referer() key. You also should be always aware that referrer or session will be empty and be able to act normally in this case too

Re: Question about how manage particular data in session

2009-05-12 Thread byqsri
On 12 Mag, 17:02, brian wrote: > On Tue, May 12, 2009 at 4:33 AM, byqsri wrote: > > > Ok > > But how can I know which service is active in a particular moment? > > You could make the service_ids the array keys with a value of false, > except the active one. I can't to do this because I can ha

Re: Question about how manage particular data in session

2009-05-12 Thread brian
On Tue, May 12, 2009 at 4:33 AM, byqsri wrote: > > Ok > But how can I know which service is active in a particular moment? You could make the service_ids the array keys with a value of false, except the active one. --~--~-~--~~~---~--~~ You received this message

Re: Question about how manage particular data in session

2009-05-12 Thread byqsri
Ok But how can I know which service is active in a particular moment? On 12 Mag, 10:04, Miles J wrote: > Well first off you would need to have Security.level medium for ajax > to work. Secondly, you could just store all the service_ids in an > array instead of 1 at a time. --~--~-~--~---

Re: Question about how manage particular data in session

2009-05-12 Thread Miles J
Well first off you would need to have Security.level medium for ajax to work. Secondly, you could just store all the service_ids in an array instead of 1 at a time. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cak

Question about how manage particular data in session

2009-05-11 Thread marco.rizze...@gmail.com
Hi I have a web application with has many services. Now user has a main page from that he can access to every services. Now I keep the value of service_id inside the session. My problem is that the user can have many services opened simultaneously (every service in a different tab ) so when the