title: how to call an application from another application by validating credentials
body: <p>i have 2 web applications 1) webgrants 2)Reports this is to view reports</p>
  
  <p>We provide a link to Reports app in webgrants.Once the users logs into Webgrants and clicks on the Reports link he will be redirected to Home page in reports app.</p>
  
  <p>The Reports app can be accessed directly and from webgrants app, so my question is how do we know whether the user is coming from webgrants or accessing directly.</p>
  
  <p>I am thinking of using session when he comes from webgrants i wants to check if session exists if it is null redirect to login page else to home page ... is this is good approach or any best way ????????</p>