Search for:
Jump to: 
Your Ad Here
Post new topic Reply to topic
Author Message
 Post subject: can we use symfony sessions in drupal
PostPosted: Tue Oct 04, 2011 5:25 am 
Offline

Joined: Tue May 13, 2008 3:43 am
Posts: 213
Hi Experts,

I have a problem in my site . As my site is having both symfony and drupal . i need to manage sympony sessions in drupal. As i am new to both so please any one help on this.plz

i kept this code in my page-front.tpl.php file on the top of the page. But it displaying empty array.But when i take a static page the sessions are displaying.

why the sessions are not applying in this file . Please help me


Thanks,
Rajkumar.P


Top
 Profile  
 
 Post subject: Re: can we use symfony sessions in drupal
PostPosted: Tue Oct 04, 2011 5:45 am 
Offline

Joined: Mon Nov 12, 2007 10:12 am
Posts: 355
Hi raj,

I have a solution for this. May this process helps you.

1.First see the code of symfony where login and logout functionality code written .After that create a seperate table like "user_dup" in database with fields of (user_id,user_browser,user_ipaddress).Here user_id means original user tables primary key id.
2.In the login functionality write the code like this i.e., insert the login userid,users browser information and his ipaddress in the table "user_dup".
3.After that go to logout function before removing the sessions delete that row which we have same information in "user_dup" table in database.
4.After that go to drupal theme folder and open page-front.tpl.php,page.tpl.php page and top of the page write query if the row is there in the "user_dup" table.if row is there the user is login in symfony other wise need to login (Display login and logout button accordingly).

Thank You.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic    [ 2 posts ] 

1, 2, 3, 4, 5 ... 413
Recent topics  Replies   Views   Last post 
No new posts Jquery ajax Pagination using php

by rajkumar » Tue Apr 19, 2011 11:14 am in Coding Repository

9

17737

Tue May 28, 2013 5:19 am

vfdg View the latest post

No new posts How to Convert DVD and Video to Your iphone 4,iphone 4 to pc

by smsbackuper » Wed May 18, 2011 8:11 am in PHP-Code Help

2

1556

Thu May 23, 2013 6:39 am

greenwoove View the latest post

No new posts How to upgrade and migrate Joomal site

by mallikharjuna rao » Mon Jan 21, 2013 1:40 pm in Joomla

1

399

Thu May 16, 2013 9:53 am

sunitha12 View the latest post

No new posts Benefits of PHP

by hirephpexpert » Fri Sep 07, 2012 4:41 am in CakePHP

6

1712

Wed May 15, 2013 6:25 am

PrettyPrincesG View the latest post

No new posts How to stop user from getting registered in Joomla

by mallikharjuna rao » Tue Jan 22, 2013 5:16 am in Joomla

3

1793

Wed May 15, 2013 6:17 am

PrettyPrincesG View the latest post


Your Ad Here