Done i fixed both the session expiry and the invalidation of the session id
in the three functions


On Thu, Apr 24, 2014 at 10:26 PM, Salma Amr <notifications@github.com>wrote:

> In
> Entangle/entangle-symfony/public/src/entangle/src/Megasoft/EntangleBundle/Controller/UserController.php:
>
> > +            $doctrineManger->flush();
> > +            return new Response('OK', 200);
> > +        }
> > +    }
> > +/**
> > + * This Method Deletes Secondary Emails of the user
> > + * @param \Symfony\Component\HttpFoundation\Request $request
> > + * @return \Symfony\Component\HttpFoundation\Response
> > + * @author menna
> > + */
> > +    public function deleteSecondaryEmailAction(Request $request) {
> > +        $requestContent = $request->getContent();
> > +        $jsonArray = json_decode($requestContent, true);
> > +        $sessionId = $request->headers->get('X-SESSION-ID');
> > +        $sesionRepo = $this->getDoctrine()->getRepository('MegasoftEntangleBundle:Session');
> > +        $currentSession = $sesionRepo->findOneBy(array('sessionId' => $sessionId));
>
> same here check whether session is expired or not @Mennatarek<https://github.com/Mennatarek>
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/ndomar/megasoft-14/pull/294/files#r11970286>
> .
>