Re: Routing Question how to use Router::connect('/') with session_id?

2008-01-30 Thread sanemat

Capturing sessionID with a route is my wrong knowledge as you say.
I understand sessionID is not url but GET query.
And (in my controller) $this->Session->read() is automatically read
session value from GET query sessionID.
Thank you.

> the issue you're seeing has been fixed there.
'the issue' is what's issue?
update to 1.2.x.x rev6418, but I get same error.
when I access '/?CAKEPHP=e233bd9c1facda8084d8ba2f2226eb60'
I get this error:
Error: CAKEPHPe233bd9c1facda8084d8ba2f2226eb60Controller could not be
found.

'the issue' is not this?
Sorry to keep asking questions.

On Jan 29, 9:45 am, nate <[EMAIL PROTECTED]> wrote:
> You can't capture the session ID with a route, because it's a GET
> variable, it's not part of the URL.  Try $_GET['CAKEPHP'] or (in your
> controller) $this->params['url']['CAKEPHP'].
>
> Also, update to the latest branch code, because the issue you're
> seeing has been fixed there.
>
> On Jan 28, 11:52 pm, sanemat <[EMAIL PROTECTED]> wrote:
>
> > Thank you for your reply.
>
> > I use cookie to use session for visitor who accept cookie.
> > The way use sessionIDs in the URL is bad as you say, but most of
> > mobilephone users in my country can not accept cookie.
> > And 'set use_trans_sid=1' adds sessionID in all url link for my site.
>
> > On Jan 29, 1:53 am, MrTufty <[EMAIL PROTECTED]> wrote:
>
> > > I might not be understanding this properly - but WHY would you want to
> > > stick session IDs in the URL? It's just about the worst thing you
> > > could ever do for SEO.
>
> > > Steve
>
> > > On Jan 28, 12:38 pm, sanemat <[EMAIL PROTECTED]> wrote:
>
> > > > I am wordering how to get url to work:
> > > > /?CAKEPHP=session_id
>
> > > > Here is my route in app/config/routes.php:
> > > > Router::connect('/', array('controller' => 'pages', 'action' =>
> > > > 'display'));
>
> > > > When I access '/', it call '/pages/display', As I expected.
> > > > But when I set disable cookie and set use_trans_sid=1, I get problem.
> > > > In my expectation, '/?CAKEPHP=session_id' call '/pages/display/?
> > > > CAKEPHP=session_id'.
>
> > > > Contrary my expectation, when I access '/?
> > > > CAKEPHP=e233bd9c1facda8084d8ba2f2226eb60'
> > > > I get this error:
> > > > Error: CAKEPHPe233bd9c1facda8084d8ba2f2226eb60Controller could not be
> > > > found.
>
> > > > Please tell me how to get url to work '/?CAKEPHP=session_id'.
> > > > I use CakePHP 1.2.x.x
>
> > > > thanks

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



Re: Routing Question how to use Router::connect('/') with session_id?

2008-01-29 Thread nate

You can't capture the session ID with a route, because it's a GET
variable, it's not part of the URL.  Try $_GET['CAKEPHP'] or (in your
controller) $this->params['url']['CAKEPHP'].

Also, update to the latest branch code, because the issue you're
seeing has been fixed there.

On Jan 28, 11:52 pm, sanemat <[EMAIL PROTECTED]> wrote:
> Thank you for your reply.
>
> I use cookie to use session for visitor who accept cookie.
> The way use sessionIDs in the URL is bad as you say, but most of
> mobilephone users in my country can not accept cookie.
> And 'set use_trans_sid=1' adds sessionID in all url link for my site.
>
> On Jan 29, 1:53 am, MrTufty <[EMAIL PROTECTED]> wrote:
>
> > I might not be understanding this properly - but WHY would you want to
> > stick session IDs in the URL? It's just about the worst thing you
> > could ever do for SEO.
>
> > Steve
>
> > On Jan 28, 12:38 pm, sanemat <[EMAIL PROTECTED]> wrote:
>
> > > I am wordering how to get url to work:
> > > /?CAKEPHP=session_id
>
> > > Here is my route in app/config/routes.php:
> > > Router::connect('/', array('controller' => 'pages', 'action' =>
> > > 'display'));
>
> > > When I access '/', it call '/pages/display', As I expected.
> > > But when I set disable cookie and set use_trans_sid=1, I get problem.
> > > In my expectation, '/?CAKEPHP=session_id' call '/pages/display/?
> > > CAKEPHP=session_id'.
>
> > > Contrary my expectation, when I access '/?
> > > CAKEPHP=e233bd9c1facda8084d8ba2f2226eb60'
> > > I get this error:
> > > Error: CAKEPHPe233bd9c1facda8084d8ba2f2226eb60Controller could not be
> > > found.
>
> > > Please tell me how to get url to work '/?CAKEPHP=session_id'.
> > > I use CakePHP 1.2.x.x
>
> > > thanks
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Routing Question how to use Router::connect('/') with session_id?

2008-01-28 Thread sanemat

Thank you for your reply.

I use cookie to use session for visitor who accept cookie.
The way use sessionIDs in the URL is bad as you say, but most of
mobilephone users in my country can not accept cookie.
And 'set use_trans_sid=1' adds sessionID in all url link for my site.

On Jan 29, 1:53 am, MrTufty <[EMAIL PROTECTED]> wrote:
> I might not be understanding this properly - but WHY would you want to
> stick session IDs in the URL? It's just about the worst thing you
> could ever do for SEO.
>
> Steve
>
> On Jan 28, 12:38 pm, sanemat <[EMAIL PROTECTED]> wrote:
>
> > I am wordering how to get url to work:
> > /?CAKEPHP=session_id
>
> > Here is my route in app/config/routes.php:
> > Router::connect('/', array('controller' => 'pages', 'action' =>
> > 'display'));
>
> > When I access '/', it call '/pages/display', As I expected.
> > But when I set disable cookie and set use_trans_sid=1, I get problem.
> > In my expectation, '/?CAKEPHP=session_id' call '/pages/display/?
> > CAKEPHP=session_id'.
>
> > Contrary my expectation, when I access '/?
> > CAKEPHP=e233bd9c1facda8084d8ba2f2226eb60'
> > I get this error:
> > Error: CAKEPHPe233bd9c1facda8084d8ba2f2226eb60Controller could not be
> > found.
>
> > Please tell me how to get url to work '/?CAKEPHP=session_id'.
> > I use CakePHP 1.2.x.x
>
> > thanks

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



Re: Routing Question how to use Router::connect('/') with session_id?

2008-01-28 Thread sanemat

Thank you for your reply.
But '/*' matches all url like '/posts/add' '/comments/edit/2', all
request calls '/pages/display'.

And I tried this.
Router::connect('/:sesseionID', array('controller' => 'pages',
'action' => 'display', '?' => 'sessionID'), array('sessionID' => '(?:\?
(.*))'));

I try capturing sessionID.
But I get another error:
Warning (2): strpos() [function.strpos]: Empty delimiter. [CORE\cake
\dispatcher.php, line 607]

On Jan 28, 11:52 pm, Marcin Jaworski <[EMAIL PROTECTED]> wrote:
> Have you tried this?
> ---cut here---
> Router::connect('/', array('controller' => 'pages', 'action' =>
> 'display'));
> Router::connect('/*', array('controller' => 'pages', 'action' =>
> 'display'));
> ---cut here---
>
> On 28 Sty, 13:38, sanemat <[EMAIL PROTECTED]> wrote:
>
> > I am wordering how to get url to work:
> > /?CAKEPHP=session_id
>
> > Here is my route in app/config/routes.php:
> > Router::connect('/', array('controller' => 'pages', 'action' =>
> > 'display'));
>
> > When I access '/', it call '/pages/display', As I expected.
> > But when I set disable cookie and set use_trans_sid=1, I get problem.
> > In my expectation, '/?CAKEPHP=session_id' call '/pages/display/?
> > CAKEPHP=session_id'.
>
> > Contrary my expectation, when I access '/?
> > CAKEPHP=e233bd9c1facda8084d8ba2f2226eb60'
> > I get this error:
> > Error: CAKEPHPe233bd9c1facda8084d8ba2f2226eb60Controller could not be
> > found.
>
> > Please tell me how to get url to work '/?CAKEPHP=session_id'.
> > I use CakePHP 1.2.x.x
>
> > thanks

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



Re: Routing Question how to use Router::connect('/') with session_id?

2008-01-28 Thread MrTufty

I might not be understanding this properly - but WHY would you want to
stick session IDs in the URL? It's just about the worst thing you
could ever do for SEO.

Steve

On Jan 28, 12:38 pm, sanemat <[EMAIL PROTECTED]> wrote:
> I am wordering how to get url to work:
> /?CAKEPHP=session_id
>
> Here is my route in app/config/routes.php:
> Router::connect('/', array('controller' => 'pages', 'action' =>
> 'display'));
>
> When I access '/', it call '/pages/display', As I expected.
> But when I set disable cookie and set use_trans_sid=1, I get problem.
> In my expectation, '/?CAKEPHP=session_id' call '/pages/display/?
> CAKEPHP=session_id'.
>
> Contrary my expectation, when I access '/?
> CAKEPHP=e233bd9c1facda8084d8ba2f2226eb60'
> I get this error:
> Error: CAKEPHPe233bd9c1facda8084d8ba2f2226eb60Controller could not be
> found.
>
> Please tell me how to get url to work '/?CAKEPHP=session_id'.
> I use CakePHP 1.2.x.x
>
> thanks
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Routing Question how to use Router::connect('/') with session_id?

2008-01-28 Thread Marcin Jaworski

Have you tried this?
---cut here---
Router::connect('/', array('controller' => 'pages', 'action' =>
'display'));
Router::connect('/*', array('controller' => 'pages', 'action' =>
'display'));
---cut here---

On 28 Sty, 13:38, sanemat <[EMAIL PROTECTED]> wrote:
> I am wordering how to get url to work:
> /?CAKEPHP=session_id
>
> Here is my route in app/config/routes.php:
> Router::connect('/', array('controller' => 'pages', 'action' =>
> 'display'));
>
> When I access '/', it call '/pages/display', As I expected.
> But when I set disable cookie and set use_trans_sid=1, I get problem.
> In my expectation, '/?CAKEPHP=session_id' call '/pages/display/?
> CAKEPHP=session_id'.
>
> Contrary my expectation, when I access '/?
> CAKEPHP=e233bd9c1facda8084d8ba2f2226eb60'
> I get this error:
> Error: CAKEPHPe233bd9c1facda8084d8ba2f2226eb60Controller could not be
> found.
>
> Please tell me how to get url to work '/?CAKEPHP=session_id'.
> I use CakePHP 1.2.x.x
>
> thanks
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Routing Question how to use Router::connect('/') with session_id?

2008-01-28 Thread sanemat

I am wordering how to get url to work:
/?CAKEPHP=session_id

Here is my route in app/config/routes.php:
Router::connect('/', array('controller' => 'pages', 'action' =>
'display'));

When I access '/', it call '/pages/display', As I expected.
But when I set disable cookie and set use_trans_sid=1, I get problem.
In my expectation, '/?CAKEPHP=session_id' call '/pages/display/?
CAKEPHP=session_id'.

Contrary my expectation, when I access '/?
CAKEPHP=e233bd9c1facda8084d8ba2f2226eb60'
I get this error:
Error: CAKEPHPe233bd9c1facda8084d8ba2f2226eb60Controller could not be
found.

Please tell me how to get url to work '/?CAKEPHP=session_id'.
I use CakePHP 1.2.x.x

thanks

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