title: Safe way to retrieve and transfer User-Id across CakePHP
body: <p>I am CakeNoob so please accept my sincere apologies for this question.</p>
  
  <p>After users Added their account in my Webapp, they are redirected to users/view where they can see their account details and edit them.</p>
  
  <p>From here, there are links to achievement/add where people can add achievements to their profile. The User and Achievement model are nicely coupled through belongsTo and HasMany associations. Once a user adds an Achievement, it will be displayed in the users/view page via related Achievements. </p>
  
  <p>Problem: Once I manually add an Achievement through achievements/add (and select the current user from the list(all)), it works fine.</p>
  
  <p>But I want that achievements can only be added when users come from users/view, so I need to transport the user-id to achievements/add and then tell Cake that this is the user-id (foreign key) to use.</p>
  
  <ul>
  <li>All users are logged in once they reach users/view so I guess the Auth session may help me. </li>
  </ul>
  
  <p>I have tried many things but my knowledge is just too minor to solve this. Your solutions are appreciated!! Thanks</p>