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