vBulletin Modifications

simple session/cookie question

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > General vBulletin Section > General vBulletin Support

Reply
 
LinkBack Thread Tools
Old 03-21-2007, 09:42 AM   #1
Junior Member
Join Date: Nov 2005
bitHacker is on a distinguished road

Default simple session/cookie question

hi,
I have created a new page for my project, which display a list of entries from a db.

so far so good

My problem, is that each entry has a lot of fields (about 20), so I separated them to 2 templates (1 for 15 questions and 1 for 5), what I want to do, is to disable/notify/make sure
if the user hit the back button in the browser, to not resubmit his step, and creating a duplicate entry.

For example, step 1 - answerd all the questions ok, hit my "next" button on the page,
answerd other questions on second page, then hit "finish" button, and all data is stored in DB.

NOW, hit back button and press "finish" AGAIN ! <--- how do I prevent it ???

Thanks in advanced




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 03-21-2007, 04:08 PM   #2
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

You can use: vbsetcookie('name', '1', false);
and then you can use: $vbulletin->session['name']




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-21-2007, 07:29 PM   #3
Junior Member
Join Date: Nov 2005
bitHacker is on a distinguished road

Default

are you sure???
using vbsetCOOKIE gets the data into the $vbulletin->session ??

I thought $vbulletin->session is a table, not a cookie...




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple question LeoZ General vBulletin Support 6 11-11-2006 02:49 PM
Really simple question: Thread Start Date? Nick R General vBulletin Support 13 05-29-2006 03:00 PM
[vb help] simple question hkboi General vBulletin Support 10 01-25-2005 01:35 AM
Really simple, a simple forums counter... Infamouz Nex vBulletin Modification Requests 31 06-21-2004 02:43 AM
Just a simple question... Infamouz Nex General vBulletin Support 2 04-15-2004 06:05 AM


All times are GMT -3. The time now is 12:56 AM.


SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)