• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
URL redirection

#2
(01-01-2016, 01:49 PM)Azamat Wrote: I want ask question about codeigniter secure redirection. Let's we have user and this user have multiple recipients. And also table with them(Codeignitier framework). If i want to edit some of user's recipient i click to edit button. Then this action redirect user to edit recipient page. 
In my codeigniter i'm using:
public fuction editRecipient($recipien_id) { ... }
If i organize my function in this way, users can access to editing another recipients(by Url: htttp://example.com/editRecipient/123/) 
So, what would be the solution?
Help me please.

The solution is to use an authentication system to verify the user and what type of user they are. In your case the recipients should not be able to edit other recipients, so if a recipient ends up at your editRecipient method, you would want to show them a 404, or perhaps give them the chance to log in as a different user type.
Reply


Messages In This Thread
URL redirection - by Azamat - 01-01-2016, 01:49 PM
RE: URL redirection - by skunkbad - 01-01-2016, 10:04 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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