Thread: HTTP Referers
View Single Post
  #1 (permalink)  
Old 02-22-2008, 01:55 AM
july4th july4th is offline
Junior Member
 
Join Date: Feb 2008
Posts: 3
Default HTTP Referers

Hello all,

First of all, I'm just getting started with the Zend Framework. I do like it a lot. I've run into a conundrum concerning logging in and referers. I'm trying to figure out the best way to explain it.

I've got three controllers: Index, Auth, Update. Right now, if you try to go to any Update action without being logged in (via Zend_Auth), preDispatch() sending you to auth/login. That bit works fine. The problem is, I can't figure out a clean way of remembering whether you came to auth/login from update/add, update/edit, or update/delete. $_SERVER['HTTP_REFERER'] is only being set as the Index controller, not the update/{action} I'm going for. I hope that makes sense.

Does anyone know of anything inside ZF that I can use to keep track of the referring action? Or know of a better way of doing this?

Thanks,

-mike

Last edited by july4th : 02-22-2008 at 02:07 AM.
Reply With Quote