Xerxes_Framework_Request has methods for session info, Luke.
http://code.google.com/p/xerxes-portal/source/browse/trunk/lib/framework/Request.php#589
It’s little more than a wrapper around $_SESSION.
We’re setting the language now based on the language param in the URL, so you might update this code here to alternately grab from session/http header
http://code.google.com/p/xerxes-portal/source/browse/trunk/lib/framework/FrontController.php#134
--Dave
-------------------------
David Walker
Interim Director, Systemwide Digital Library Services
California State University
--
You received this message because you are subscribed to the Google Groups "xerxes-portal" group.
To view this discussion on the web visit https://groups.google.com/d/msg/xerxes-portal/-/ELK-PzVcFw8J.
To post to this group, send email to xerxes...@googlegroups.com.
To unsubscribe from this group, send email to xerxes-porta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/xerxes-portal?hl=en.
Suggest language param in URL should over-ride http accept headers, if
both are present.
On 8/1/2012 9:46 AM, Walker, David wrote:
> Xerxes_Framework_Request has methods for session info, Luke.
>
> http://code.google.com/p/xerxes-portal/source/browse/trunk/lib/framework/Request.php#589
>
> It�s little more than a wrapper around $_SESSION.
>
> We�re setting the language now based on the language param in the URL,
> so you might update this code here to alternately grab from session/http
> header
>
> http://code.google.com/p/xerxes-portal/source/browse/trunk/lib/framework/FrontController.php#134
>
> --Dave
>
> -------------------------
>
> David Walker
>
> Interim Director, Systemwide Digital Library Services
>
> California State University
>
> 562-355-4845
>
> *From:*xerxes-portal@googlegroups.com
> [mailto:xerxes-portal@googlegroups.com] *On Behalf Of *Luke O'Sullivan
> *Sent:* Wednesday, August 01, 2012 6:42 AM
> *To:* xerxes...@googlegroups.com
> *Subject:* [xerxes-portal] Setting Xerxes Langauge by Language HTTP
> Request Header
>
> Hi Folks,
>
> I've had a request to set the language used by Xerxes based any values
> set by the user's browser.
>
> I plan to check for the Accept-Language header on the user's first visit
> to Xerxes. Does Xerxes have a session handler similar to the registry
> handler or will I have to create one from scratch / use cookies?
>
> Thanks,
>
> Luke
>
> --
> You received this message because you are subscribed to the Google
> Groups "xerxes-portal" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/xerxes-portal/-/ELK-PzVcFw8J.
> To post to this group, send email to xerxes...@googlegroups.com
> <mailto:xerxes-portal@googlegroups.com>.
> To unsubscribe from this group, send email to
> xerxes-portal+unsubscribe@googlegroups.com
> <mailto:xerxes-portal+unsub...@googlegroups.com>.
> For more options, visit this group at
> http://groups.google.com/group/xerxes-portal?hl=en.
>
> --
> You received this message because you are subscribed to the Google
> Groups "xerxes-portal" group.
> To post to this group, send email to xerxes...@googlegroups.com.
> To unsubscribe from this group, send email to
> xerxes-portal+unsubscribe@googlegroups.com.