• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Passing a full url in the uri

#1
[eluser]bgougent[/eluser]
Is it possible to pass a full url as parameter in CI without setting
Code:
$config['enable_query_strings'] = TRUE;
.

So the idea will be:
Code:
login/http://www.site.com/pagemore
where
Code:
http://www.site.com/pagemore
is de reference page.

I have already thought about session en the referrer. But I need to use also this login from site that will not use CI.

#2
[eluser]xwero[/eluser]
You could replace the forward slashes with something else to prevent CI from seeing the url as segments.

#3
[eluser]Phil Sturgeon[/eluser]
url_encode() could do the trick, but you'd need to all some extra characters in your URL's.

For login redirection I prefer to use sessions, that would be one way to avoid this issue.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.