.... How to Find Your Subject Study Group & Join ....   .... Find Your Subject Study Group & Join ....  

We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Study Groups By Subject code Wise (Click Below on your university link & Join Your Subject Group)

[ + VU Study Groups Subject Code Wise ]  [ + COMSATS Virtual Campus Study Groups Subject Code Wise ]

Looking For Something at vustudents.ning.com?Search Here

Modern Programming Languages (CS508) Graded Discussion Board (GDB) Discussion & Solution which will open on Thursday, February 16, 2017 for two days

Suppose you are a web application developer in a software house. A task is given to you to develop a website using PHP. Website will have information of different products. Visitors of the website can view different products of their choice showing on pages. Website keep record of product of each user’s interest and suggest other related products to users as well. To keep track of user’s interested products and suggest relevant products, you can use different types of session tracking techniques. Products can be suggested only for current session of user and if possible, for next visit as well. The most important and critical requirement is that application should be secure enough that no one could see the interested product of any user.

From PHP Session and Cookie, which session tracking technique you will use on your website? Justify your selection with solid arguments. 

NOTE:

  • Your comments should be concise and to the point.
  • No GDB is accepted via e-mail in either case
  • Lengthy replies of GDB will cause in deduction of marks
  • Copied from internet or any source will be graded “Poor”.

For any query: cs508@vu.edu.pk

This Content Originally Published by a member of VU Students.

Views: 858

See Your Saved Posts Timeline

Replies to This Discussion

Step One: A good rule is to keep all files which are related to a particular website in the same folder. This prevents any dead links or linking errors which may creep in later on when the website gets quite large. This applies to all websites you create and not just this tutorial. Another good tip which is worth remembering is to keep all filenames you create for pages in lowercase.

Now we know to keep all our files in the same folder, create a folder and call it whatever you want, just remember where it is. Then open up your HTML editor and create a new page, save this page as template.php inside the folder you have just created. The extension of the page you create has to end with .php and not .html. All page extensions need to end with .php to allow PHP to parse the pages and include the includes! Type the following into the blank page in source view or if you know a little HTML, create the tables in WYSIWYG view.

Step Two Now we have the actual page which will create our individual pages from, what we need now are the pages to include. So open up a new blank page in your editor and then save this blank page and call it header.php

Repeat this process for footer.php and menu.php. So now you should have 3 blank pages and the template.php page. You now have all the pages created that will form the basis of your website. Remember this is a tutorial only and you can add any colour format / style after you have got to know a bit about how to use the PHP includes in a website.

Pages you should have created are:-

  • template.php 
  • header.php 
  • footer.php 
  • menu.php 

Step Three Open up the header.php page and add some text or logo. For our template just add some text which says: "Welcome to PHP Include Test".

Open up the footer.php page and add a copyright notice. The footer can be used for other purposes including more links, but all this can be added later. We will just use it for our copyright notice.

Open up the menu.php page and add the following:

Home 
About Us 
Contact Us 

Now we are happy with how our site is progressing, it is time to open up the template.php page. You will notice this page is blank and it will remain so. We are just going to use this page as a template page to create our other pages. So with this page open in your HTML editor, save this page as index.php.

Open this new page (index.php) as this is our new main index page. Repeat this process as many times as you want creating a number of pages to correspond with your website.

Now we have the foundation and pages created, add the text to all the pages you have just created and then open up the menu.php page again. You now have the number of links and pages that you need to add to this file.

For instance, if you created 3 pages from the template.php page (index.phpabout.phpcontact.php) you can now add these links to the page. Anything you now add to the pages header.phpmenu.php footer.php will automatically appear on every page on your website if you use the template,.php page to create extra pages.

Now, to view the pages you have created you will need to upload them to a PHP enabled web server. Nearly all hosts support this now as standard. Point your browser to the uploaded index page and you should be able to see the basic layout and pages we have just created. Have a p[lay around adding text and images so you get the full idea of what PHP Includes can do. It's a great way to create and make a website very maintainable.

After following this tutorial, you should be able to create your own website which is very easy to maintain and consists of loads of pages with quality content for the search engines to find.

I'm pretty sure you didn't understand what the question is.

Better stick to the relevant material and avoid massive copy paste.

ap detail sy bta do what is the question?

Session or Cookie me se btana konsi tracking technique ziada useful or secure ha.

bta dyty han agr kisi ko confussion ho . apni efficiency nai dikhany byth jaty hoty.

clear idea

CS508 GDB

Session Tracking in PHP
Session support in PHP consists of a way to preserve certain data across subsequent accesses. This enables you to build more customized applications and increase the appeal of your website. A PHP session variable is used to store information about, or change settings for a user session.
Session variables hold information about one single user, and are available to all pages in one application. A visitor accessing your web application is assigned a unique id called session id. This is either stored in a cookie on the client side or is propagated in the URL. The main difference between a session and a cookie is that session data is stored on the server, whereas cookies store data in the visitor's browser. Sessions are more secure than cookies as it is stored in server. Cookie can be turn off from browser.

Please Discuss here about this GDB.Thanks

Our main purpose here discussion not just Solution

We are here with you hands in hands to facilitate your learning and do not appreciate the idea of copying or replicating solutions. Read More>>

 

Note:-

For Important Helping Material related to this subject (Solved MCQs, Short Notes, Solved past Papers, E-Books, FAQ,Short Questions Answers & more). You must view all the featured Discussion in this subject group.

For how you can view all the Featured discussions click on the Back to Subject Name Discussions link below the title of this Discussion & then under featured Discussion corner click on the view all link.

Or visit this link 

Click Here For Detail.

&

.•°How to Download past papers from study groups°•.

 

Please Click on the below link to see…

.... How to Find Your Subject Study Group & Join .... 

CS508 GDB solution by malik sohail...

session technique is best for this project.Because a cookie is often used to identify a user and send a cookie to user computer but a session is stored in server side and storing user information to be used across multiple pages...

Explain in your own word's....

RSS

Forum Categorizes

Job's & Careers (Latest Jobs)

Admissions (Latest Admissons)

Scholarship (Latest Scholarships)

Internship (Latest Internships)

VU Study

Other Universities/Colleges/Schools Help

    ::::::::::: More Categorizes :::::::::::

© 2017   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service