Lecture 7: Dates/Times & Sessions. CS 383 Web Development II Wednesday, February 14, 2018

Size: px
Start display at page:

Download "Lecture 7: Dates/Times & Sessions. CS 383 Web Development II Wednesday, February 14, 2018"

Transcription

1 Lecture 7: Dates/Times & Sessions CS 383 Web Development II Wednesday, February 14, 2018

2 Date/Time When working in PHP, date is primarily tracked as a UNIX timestamp, the number of seconds that have elapsed since January 1st, 1970 at 12:00am GMT 1

3 Date/Time This is why you often see bugs on webpages that: o Recently, on December 31 st, 2015, Facebook errantly sent On This Day alerts to users telling them they had been friends with somebody for 46 years, which occurred because Facebook did not track the timestamp from the very beginning that two people became friends, and incorrectly handled the case where the database listed it as 0 o Often, you may see on a website that something was posted/updated on December 31, 1969 at 7PM -- again, it is loading it as 0, and Eastern time is 5 hours behind GMT 2

4 Date/Time If there are any 32-bit machines remaining on January 19 th, 2038 (highly unlikely), we will reach the Y2K38 bug This timestamp will exceed the 31 (out of 32) bits that store the numerical value of an integer, overflow into the negative bit, and actually roll the clock back to December 13, 1901 because we would be subtracting 68 years from January 1 st, 1970, rather than add it For more information, see: 3

5 Date/Time The current UNIX timestamp can be found by calling the time() function (no arguments) Again, this will be the number of seconds that have elapsed since January 1, am Thus, suppose you want to find the timestamp for exactly five days from now you can do math to get it: time() + 60 * 60 * 24 * 5 4

6 Date/Time To get the timestamp of any other time besides the current, use: mktime([$hour[, $minute[, $second[, $month[, $day[, $year[, $is_dst]]]]]]) If any arguments are excluded, the current date/time is used for each remaining argument o If mktime(12) is called on February 17 th at 4:40:18pm, it will return the timestamp for February 17 th, 2016 at 12:40:18pm 5

7 Date/Time mktime() is also smart about carrying or borrowing (when you think about adding and subtracting from elementary school) when you do math within it s arguments For example, suppose you wanted to find the timestamp of 10 days after February 25 th (midnight): o Function call: mktime(0, 0, 0, 2, , 2016) o Although would equal February 35 th, it is smart enough to March 6 th o Likewise, mktime(0, 0, 0, , 1, 2016) will become January 1 st,

8 Date/Time To display a date/time, use the function: date($format_string[, $timestamp]) The values that can be used in the format string can be found at If the second argument is not provided, it uses the current time 7

9 Date/Time Examples (assume run at 4:45pm on Wednesday, February 17 th ): o date("f js, Y") => February 17th, 2016 o date("m/d/y") => 02/17/16 o date("g:ia") => 4:45pm If you want to add text to the string with letters that are used as codes (37/52 letters uppercase and lowercase are), use \ to escape them o date("f js, Y at g:ia") => February 17th, 2016 pm29 4:45pm o date("f js, Y \a\t g:ia") => February 17th, 2016 at 4:45pm 8

10 Sessions vs. Cookies There are two different ways to manage a user who is currently logged in and track information about a user as they go through a visit on a website: o Sessions o Cookies 9

11 Sessions vs. Cookies Pro-Session/Anti-Cookie Session data held is private to the user Any user can edit a cookie Cookies can be disabled by the user within a browser Pro Cookie/Anti-Session Cookies retain data from browser session to browser session, while sessions are lost at the end of a browser session 10

12 Example Scenario You have a website users login to, and you re trying to decide whether you want to use cookies or sessions Suppose you want to track the login with the cookie: o Can you just record the username in the cookie of who logged in? No, somebody can change it to someone else s username o Can you just record a sequential session ID? No, somebody can change it to another number o You would need to create a fairly secure, non-obvious encrypted formula to store information as a cookie so the user can t manipulate it to login as someone else If you use a session, you can just store the username in a variable, as the user can t modify the session you must do it with your script 11

13 Sessions vs. Cookies Most websites use cookies to fill in the username by default (the remember me box) of a login screen and sessions to manage everything else 12

14 Note About Setting Cookies and Sessions Cookies and sessions are both set as a part of the headers being created Headers cannot be set once something has been output to the page Thus, you cannot change cookies or sessions after something has been output to the page All cookies or sessions must be set before <!DOCTYPE html> is printed to the page 13

15 Cookies Cookies are set using: setcookie($name[, $value[, $expire[, $path[, $domain[, $secure[, $httponly]]]]]]) o $name is the variable associated with the cookie (ex: username) o $value is what $name is equal to (ex: jason.wagner1) o $expire is the UNIX timestamp of when it should expire o $path are the pages that can access the cookie (ex: if we use our websites you would want to make the path "/~username/" to ensure other users can t read your cookies) o $domain is the domain that can access it (ex: "mathcs.wilkes.edu" would allow all users to access it; "username.mathcs.wilkes.edu" would restrict access to just your subdomain) o $secure, if true, would only allow the cookie over https o $httpsonly, if true, would only allow the cookie over http 14

16 Cookies To delete a cookie, simply use the same setcookie() function calls (domain, path, etc.), but set the value to an empty string and the expire time to a time in the past, like time() 60 To access cookies in your code, simply use $_COOKIE["name"] 15

17 Sessions While sessions meet our needs better than cookies do, they are a bit more work If we are writing or just accessing sessions, we always need to first call session_start() to do anything with sessions 16

18 Sessions Think of sessions like cookies that are stored on the server These sessions must get saved somewhere The directory that sessions are stored in is traditionally owned (for read/write access) by the www-data user We can t write to that directory when our scripts run under AssignUserId 17

19 Sessions This, we must change where our sessions are held: session_save_path($path) For example: <?php session_start(); session_save_path("/var/www/html/cs383/se ssions/");?> 18

20 Sessions All of our session information is stored in $_SESSION, which we treat just like any other array $_SESSION["username"] = "jason.wagner1"; We must write any data to our session before we output anything, even whitespace or <!DOCTYPE html> To ensure the information is written before anything is output, we use the function: session_write_close() Even after calling session_write_close(), we can still access our data in the session we just can t write to it 19

21 Sessions Example: <?php session_start(); session_save_path("/var/www/html/cs383/se ssions/"); $_SESSION["username"] = $_POST["username"]; session_write_close();?> 20

22 Sessions Because users cannot see or write to the session files, we can store information in the sessions that make it easier for us to code solutions to our problems without worrying about users seeing or changing something to manipulate the session To destroy the entire session, use session_destroy() To delete one sesson variable, use unset($_session["variable"]); 21

23 Sessions Sessions have a maximum amount of time, set in php.ini, that must occur without a user session being accessed before it is erased If this setting is set to 30 minutes, even if nothing with the session is changed, as long as the user accesses a page that calls session_start(), their 30 minute timer restarts Thus, they must go that length of time without accessing a page with session_start() before the session is automatically ended 22

24 Sessions To set your own expiration time, you would code the following: o Store an expire time, calculated as you would for cookies, in a session variable o Each time you open a session, check the current time against the expire time If the current time > expire time, destroy the session/auto logout If current time < expire time, update expire time and load page as expected 23

25 Sessions Files are stored in files called sess_md5hexadecimalstring The contents of the file are the equivalent of serialize($_session) 24

26 Other Headers There are other header functions that can be set that we will cover later in this course: o File content-type o Force download of a file o Cache webpage One that may be helpful now is to automatically redirect the visitor to another page 25

27 Other Headers Redirect someone to Google.com: <?php header("location: exit();?> The call of exit() after the header call is important if the user is not redirected and something is output while it is waiting, you will get an error that the headers were already sent, or other code can be executed 26

28 Other Headers To redirect somebody to another page within your website: <?php header("location: login.php"); exit();?> For example, you can use this to check to see if a user is already logged in, and if not, redirect them to a login page 27

WEB APPLICATION ENGINEERING II

WEB APPLICATION ENGINEERING II WEB APPLICATION ENGINEERING II Lecture #5 Umar Ibrahim Enesi Objectives Gain understanding of how Cookies and Sessions Work Understand the limitations of Sessions and Cookies Understand how to handle Session

More information

CSE 154 LECTURE 13: SESSIONS

CSE 154 LECTURE 13: SESSIONS CSE 154 LECTURE 13: SESSIONS Expiration / persistent cookies setcookie("name", "value", expiration); $expiretime = time() + 60*60*24*7; # 1 week from now setcookie("couponnumber", "389752", $expiretime);

More information

Lecture 6: More Arrays & HTML Forms. CS 383 Web Development II Monday, February 12, 2018

Lecture 6: More Arrays & HTML Forms. CS 383 Web Development II Monday, February 12, 2018 Lecture 6: More Arrays & HTML Forms CS 383 Web Development II Monday, February 12, 2018 Lambdas You may have encountered a lambda (sometimes called anonymous functions) in other programming languages The

More information

Database Systems Fundamentals

Database Systems Fundamentals Database Systems Fundamentals Using PHP Language Arman Malekzade Amirkabir University of Technology (Tehran Polytechnic) Notice: The class is held under the supervision of Dr.Shiri github.com/arman-malekzade

More information

Chapter 7:- PHP. Compiled By:- Sanjay Patel Assistant Professor, SVBIT.

Chapter 7:- PHP. Compiled By:- Sanjay Patel Assistant Professor, SVBIT. Chapter 7:- PHP Compiled By:- Assistant Professor, SVBIT. Outline Starting to script on server side, Arrays, Function and forms, Advance PHP Databases:-Basic command with PHP examples, Connection to server,

More information

University of Washington, CSE 154 Homework Assignment 7: To-Do List

University of Washington, CSE 154 Homework Assignment 7: To-Do List University of Washington, CSE 154 Homework Assignment 7: To-Do List In this assignment you will write a web application for an online to-do list. The assignment tests your understanding of user login sessions

More information

COMP519 Web Programming Lecture 28: PHP (Part 4) Handouts

COMP519 Web Programming Lecture 28: PHP (Part 4) Handouts COMP519 Web Programming Lecture 28: PHP (Part 4) Handouts Ullrich Hustadt Department of Computer Science School of Electrical Engineering, Electronics, and Computer Science University of Liverpool Contents

More information

CSE 154 LECTURE 21: COOKIES

CSE 154 LECTURE 21: COOKIES CSE 154 LECTURE 21: COOKIES Regular expressions in (PDF) regex syntax: strings that begin and end with /, such as "/[AEIOU]+/" function preg_match(regex, string) preg_replace(regex, replacement, string)

More information

CSE 154 LECTURE 21: COOKIES

CSE 154 LECTURE 21: COOKIES CSE 154 LECTURE 21: COOKIES Regular expressions in (PDF) regex syntax: strings that begin and end with /, such as "/[AEIOU]+/" function preg_match(regex, string) preg_replace(regex, replacement, string)

More information

How browsers talk to servers. What does this do?

How browsers talk to servers. What does this do? HTTP HEADERS How browsers talk to servers This is more of an outline than a tutorial. I wanted to give our web team a quick overview of what headers are and what they mean for client-server communication.

More information

Accessing Your Payroll Stubs via

Accessing Your Payroll Stubs via Accessing Your Payroll Stubs via Email Logging On to a Computer within the District: (does not apply to your computer at home) 1) Turn on the computer, if it is not already on. At this screen, press the

More information

Web Programming 4) PHP and the Web

Web Programming 4) PHP and the Web Web Programming 4) PHP and the Web Emmanuel Benoist Fall Term 2013-14 Berner Fachhochschule Haute cole spcialise bernoise Berne University of Applied Sciences 1 PHP a language for Web applications Presentation

More information

Lecture 9a: Sessions and Cookies

Lecture 9a: Sessions and Cookies CS 655 / 441 Fall 2007 Lecture 9a: Sessions and Cookies 1 Review: Structure of a Web Application On every interchange between client and server, server must: Parse request. Look up session state and global

More information

Introduction. Server-side Techniques. Introduction. 2 modes in the PHP processor:

Introduction. Server-side Techniques. Introduction. 2 modes in the PHP processor: Introduction Server-side Techniques PHP Hypertext Processor A very popular server side language on web Code embedded directly into HTML documents http://hk2.php.net/downloads.php Features Free, open source

More information

Web Programming TL 9. Tutorial. Exercise 1: String Manipulation

Web Programming TL 9. Tutorial. Exercise 1: String Manipulation Exercise 1: String Manipulation Tutorial 1) Which statements print the same thing to the screen and why? echo "$var"; value of $var echo '$var'; the text '$var' echo $var ; value of $var 2) What is printed

More information

Web Application Development (WAD) V th Sem BBAITM(Unit-1) By: Binit Patel

Web Application Development (WAD) V th Sem BBAITM(Unit-1) By: Binit Patel Web Application Development (WAD) V th Sem BBAITM(Unit-1) By: Binit Patel Introduction: PHP (Hypertext Preprocessor) was invented by Rasmus Lerdorf in 1994. First it was known as Personal Home Page. Later

More information

Autopopulation; Session & Cookies

Autopopulation; Session & Cookies ; Session & Cookies CGT 356 Web Programming, Development, & Database Integration Lecture 5 Session array Use the Session array to store data that needs to be recalled on later pages $_SESSION[ foo ] Use

More information

Chapter 9. Managing State Information. Understanding State Information (continued) Understanding State Information 10/29/2011.

Chapter 9. Managing State Information. Understanding State Information (continued) Understanding State Information 10/29/2011. Chapter 9 Managing State Information PHP Programming with MySQL 2 nd Edition Objectives In this chapter, you will: Learn about state information Use hidden form fields to save state information Use query

More information

You can also set the expiration time of the cookie in another way. It may be easier than using seconds.

You can also set the expiration time of the cookie in another way. It may be easier than using seconds. What is a Cookie? A cookie is often used to identify a user. A cookie is a small file that the server embeds on the user's computer. Each time the same computer requests a page with a browser, it will

More information

Alpha College of Engineering and Technology. Question Bank

Alpha College of Engineering and Technology. Question Bank Alpha College of Engineering and Technology Department of Information Technology and Computer Engineering Chapter 1 WEB Technology (2160708) Question Bank 1. Give the full name of the following acronyms.

More information

BEGINNER PHP Table of Contents

BEGINNER PHP Table of Contents Table of Contents 4 5 6 7 8 9 0 Introduction Getting Setup Your first PHP webpage Working with text Talking to the user Comparison & If statements If & Else Cleaning up the game Remembering values Finishing

More information

Lecture 3: Web Servers / PHP and Apache. CS 383 Web Development II Monday, January 29, 2018

Lecture 3: Web Servers / PHP and Apache. CS 383 Web Development II Monday, January 29, 2018 Lecture 3: Web Servers / PHP and Apache CS 383 Web Development II Monday, January 29, 2018 Server Configuration One of the most common configurations of servers meant for web development is called a LAMP

More information

Create-A-Page Design Documentation

Create-A-Page Design Documentation Create-A-Page Design Documentation Group 9 C r e a t e - A - P a g e This document contains a description of all development tools utilized by Create-A-Page, as well as sequence diagrams, the entity-relationship

More information

CONTENTS IN DETAIL INTRODUCTION 1 THE FAQS OF LIFE THE SCRIPTS EVERY PHP PROGRAMMER WANTS (OR NEEDS) TO KNOW 1 2 CONFIGURING PHP 19

CONTENTS IN DETAIL INTRODUCTION 1 THE FAQS OF LIFE THE SCRIPTS EVERY PHP PROGRAMMER WANTS (OR NEEDS) TO KNOW 1 2 CONFIGURING PHP 19 CONTENTS IN DETAIL INTRODUCTION xiii 1 THE FAQS OF LIFE THE SCRIPTS EVERY PHP PROGRAMMER WANTS (OR NEEDS) TO KNOW 1 #1: Including Another File as a Part of Your Script... 2 What Can Go Wrong?... 3 #2:

More information

(Frequently Asked Questions)

(Frequently Asked Questions) (Frequently Asked Questions) Aptech Ltd. Version 1.0 Page 1 of 9 Table of Contents S# Question 1. How do you create sub domains using PHP? 2. What is the difference between echo and print statements in

More information

Mobile Site Development

Mobile Site Development Mobile Site Development HTML Basics What is HTML? Editors Elements Block Elements Attributes Make a new line using HTML Headers & Paragraphs Creating hyperlinks Using images Text Formatting Inline styling

More information

CS125 : Introduction to Computer Science. Lecture Notes #11 Procedural Composition and Abstraction. c 2005, 2004 Jason Zych

CS125 : Introduction to Computer Science. Lecture Notes #11 Procedural Composition and Abstraction. c 2005, 2004 Jason Zych CS125 : Introduction to Computer Science Lecture Notes #11 Procedural Composition and Abstraction c 2005, 2004 Jason Zych 1 Lecture 11 : Procedural Composition and Abstraction Solving a problem...with

More information

INTERNET ENGINEERING. HTTP Protocol. Sadegh Aliakbary

INTERNET ENGINEERING. HTTP Protocol. Sadegh Aliakbary INTERNET ENGINEERING HTTP Protocol Sadegh Aliakbary Agenda HTTP Protocol HTTP Methods HTTP Request and Response State in HTTP Internet Engineering 2 HTTP HTTP Hyper-Text Transfer Protocol (HTTP) The fundamental

More information

User authentication, passwords

User authentication, passwords User authentication, passwords User Authentication Nowadays most internet applications are available only for registered (paying) users How do we restrict access to our website only to privileged users?

More information

Get in Touch Module 1 - Core PHP XHTML

Get in Touch Module 1 - Core PHP XHTML PHP/MYSQL (Basic + Advanced) Web Technologies Module 1 - Core PHP XHTML What is HTML? Use of HTML. Difference between HTML, XHTML and DHTML. Basic HTML tags. Creating Forms with HTML. Understanding Web

More information

BRIVO ACS USER GUIDE VERSION 1.0 DRAFT

BRIVO ACS USER GUIDE VERSION 1.0 DRAFT Brivo ACS User Guide June 2001 DRAFT NOTICE: This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to part 15 of the FCC Rules. These limits are designed

More information

ASP.NET State Management Techniques

ASP.NET State Management Techniques ASP.NET State Management Techniques This article is for complete beginners who are new to ASP.NET and want to get some good knowledge about ASP.NET State Management. What is the need of State Management?

More information

Attacks Against Websites. Tom Chothia Computer Security, Lecture 11

Attacks Against Websites. Tom Chothia Computer Security, Lecture 11 Attacks Against Websites Tom Chothia Computer Security, Lecture 11 A typical web set up TLS Server HTTP GET cookie Client HTML HTTP file HTML PHP process Display PHP SQL Typical Web Setup HTTP website:

More information

Highwinds CDN Content Protection Products. August 2009

Highwinds CDN Content Protection Products. August 2009 Highwinds CDN Content Protection Products August 2009 1 Highwinds CDN Content Protection Products August 2009 Table of Contents CDN SECURITY INTRO... 3 CONTENT PROTECTION BY CDN DELIVERY PRODUCT... 3 HTTP

More information

Analytics, Insights, Cookies, and the Disappearing Privacy

Analytics, Insights, Cookies, and the Disappearing Privacy Analytics, Insights, Cookies, and the Disappearing Privacy What Are We Talking About Today? 1. Logfiles 2. Analytics 3. Google Analytics 4. Insights 5. Cookies 6. Privacy 7. Security slide 2 Logfiles Every

More information

Cookies and S essions 323

Cookies and S essions 323 Cookies and Sessions 9 The Hypertext Transfer Protocol (HTTP) is a stateless technology, meaning that each individual HTML page is an unrelated entity. HTTP has no method for tracking users or retaining

More information

Title: Jan 29 11:03 AM (1 of 23) Note that I have now added color and some alignment to the middle and to the right on this example.

Title: Jan 29 11:03 AM (1 of 23) Note that I have now added color and some alignment to the middle and to the right on this example. Title: Jan 29 11:03 AM (1 of 23) Note that I have now added color and some alignment to the middle and to the right on this example. Sorry about these half rectangle shapes a Smartboard issue today. To

More information

FREQUENTLY ASKED QUESTIONS (FAQs)

FREQUENTLY ASKED QUESTIONS (FAQs) FREQUENTLY ASKED QUESTIONS (FAQs) OMREB s New Single Sign-On (SSO) Portal & Scout for SAFEAccess from Clareity 2 FAQs FREQUENTLY ASKED QUESTIONS (FAQs) Q: What is Clareity? A: Clareity Security s Single

More information

CERTIFICATE IN WEB PROGRAMMING

CERTIFICATE IN WEB PROGRAMMING COURSE DURATION: 6 MONTHS CONTENTS : CERTIFICATE IN WEB PROGRAMMING 1. PROGRAMMING IN C and C++ Language 2. HTML/CSS and JavaScript 3. PHP and MySQL 4. Project on Development of Web Application 1. PROGRAMMING

More information

PIC 40A. Lecture 19: PHP Form handling, session variables and regular expressions. Copyright 2011 Jukka Virtanen UCLA 1 05/25/12

PIC 40A. Lecture 19: PHP Form handling, session variables and regular expressions. Copyright 2011 Jukka Virtanen UCLA 1 05/25/12 PIC 40A Lecture 19: PHP Form handling, session variables and regular expressions 05/25/12 Copyright 2011 Jukka Virtanen UCLA 1 How does a browser communicate with a program on a server? By submitting an

More information

Exercise 6 - Addressing a Message

Exercise 6 - Addressing a Message Exercise 6 - Addressing a Message All e-mail messages have to include an address for an e-mail to be delivered, just as a normal letter has to have a house address. An e-mail address is made up of: a user

More information

Submitting forms (client-side)

Submitting forms (client-side) Client/Server Submitting forms (client-side) Submitting forms (client-side) Submitting forms (client-side) submit.php $len = strlen($_post["password"]); $name = $_POST["name"]; print "Welcome ". $name;

More information

PIC 40A. Review for the Final. Copyright 2011 Jukka Virtanen UCLA 1 06/05/15

PIC 40A. Review for the Final. Copyright 2011 Jukka Virtanen UCLA 1 06/05/15 PIC 40A Review for the Final 06/05/15 Copyright 2011 Jukka Virtanen UCLA 1 Overview Final is on: Monday, June 08, 2015 11:30 AM - 2:30 PM Geology 4645 Double check on myucla.edu. 06/05/15 Copyright Jukka

More information

Appendix 2 Number Representations

Appendix 2 Number Representations Appendix 2 Number Representations There are many different ways to represent whole numbers. While we are comfortable counting in decimal (0,1,2,3,4,5,6,7,8,9,10,11,12, ), that is only one set of names

More information

CITS1231 Web Technologies. PHP s, Cookies and Session Control

CITS1231 Web Technologies. PHP  s, Cookies and Session Control CITS1231 Web Technologies PHP Emails, Cookies and Session Control Sending email with PHP We have looked at storing user information using files. Email messages can also be thought of as data streams, providing

More information

Grenada Co-operative Bank Limited. User Guide

Grenada Co-operative Bank Limited. User Guide Grenada Co-operative Bank Limited User Guide Welcome to Co-op Bank s ebanking Service, which provides convenient, private and secure access to your accounts, anywhere and at anytime, using smart phones

More information

WHAT'S NEW IN THE RELEASE FOR THE MMS WEB PORTALS. Version Version Prior Releases. Version 4.4.3

WHAT'S NEW IN THE RELEASE FOR THE MMS WEB PORTALS. Version Version Prior Releases. Version 4.4.3 WHAT'S NEW IN THE RELEASE FOR THE MMS WEB PORTALS Version 4.4.5 On May 10, 2016 we released MMS Web Portals version 4.4.5. This is a maintenance update that corrects the following issues: Teacher Portal

More information

last time: command injection

last time: command injection Web Security 1 last time: command injection 2 placing user input in more complicated language SQL shell commands input accidentally treated as commands in language instead of single value (e.g. argument/string

More information

If you re serious about Cookie Stuffing, take a look at Cookie Stuffing Script.

If you re serious about Cookie Stuffing, take a look at Cookie Stuffing Script. Cookie Stuffing What is Cookie Stuffing? Cookie Stuffing is a very mild form of black hat marketing, because in all honesty, this one doesn t break any laws. Certainly, it goes against the terms of service

More information

Instructions for Editing in the new System DNN9 the Upgrade from DNN8

Instructions for Editing in the new System DNN9 the Upgrade from DNN8 Instructions for Editing in the new System DNN9 the Upgrade from DNN8 We all hate change, but going forward is the best way to go. Security needs to be top of the range and your websites need to be faster

More information

GET /index.php HTTP/1.1 Host: User- agent: Mozilla/4.0

GET /index.php HTTP/1.1 Host:   User- agent: Mozilla/4.0 State management GET /index.php HTTP/1.1 Host: www.mtech.edu User- agent: Mozilla/4.0 HTTP/1.1 200 OK Date: Thu, 17 Nov 2011 15:54:10 GMT Server: Apache/2.2.16 (Debian) Content- Length: 285 Set- Cookie:

More information

Greenville CSD Parent Guide to SchoolTool

Greenville CSD Parent Guide to SchoolTool Accessing your student s on-line SchoolTool school records is now a simple matter. There are several things that need to be done to begin this process. 1. Send your email address to us Your current email

More information

Introduction to Programming in C Department of Computer Science and Engineering. Lecture No. #54. Organizing Code in multiple files

Introduction to Programming in C Department of Computer Science and Engineering. Lecture No. #54. Organizing Code in multiple files Introduction to Programming in C Department of Computer Science and Engineering Lecture No. #54 Organizing Code in multiple files (Refer Slide Time: 00:09) In this lecture, let us look at one particular

More information

Cookies, sessions and authentication

Cookies, sessions and authentication Cookies, sessions and authentication TI1506: Web and Database Technology Claudia Hauff! Lecture 7 [Web], 2014/15 1 Course overview [Web] 1. http: the language of Web communication 2. Web (app) design &

More information

CONTENTS: What Is Programming? How a Computer Works Programming Languages Java Basics. COMP-202 Unit 1: Introduction

CONTENTS: What Is Programming? How a Computer Works Programming Languages Java Basics. COMP-202 Unit 1: Introduction CONTENTS: What Is Programming? How a Computer Works Programming Languages Java Basics COMP-202 Unit 1: Introduction Announcements Did you miss the first lecture? Come talk to me after class. If you want

More information

ITS331 IT Laboratory I: (Laboratory #11) Session Handling

ITS331 IT Laboratory I: (Laboratory #11) Session Handling School of Information and Computer Technology Sirindhorn International Institute of Technology Thammasat University ITS331 Information Technology Laboratory I Laboratory #11: Session Handling Creating

More information

Security and Authentication

Security and Authentication Security and Authentication CS 370 SE Practicum, Cengiz Günay (Some slides courtesy of Eugene Agichtein and the Internets) CS 370, Günay (Emory) Security and Authentication Spring 2014 1 / 15 Agenda Upcoming

More information

PHP State Maintenance (Cookies, Sessions, Hidden Inputs)

PHP State Maintenance (Cookies, Sessions, Hidden Inputs) PHP State Maintenance (Cookies, Sessions, Hidden Inputs) What is meant by state? The Hypertext Transfer Protocol (HTTP) is stateless. This means that each time a browser requests a page, a connection from

More information

CS 161 Computer Security

CS 161 Computer Security Nick Weaver Fall 2018 CS 161 Computer Security Homework 3 Due: Friday, 19 October 2018, at 11:59pm Instructions. This homework is due Friday, 19 October 2018, at 11:59pm. No late homeworks will be accepted

More information

Proxying. Why and How. Alon Altman. Haifa Linux Club. Proxying p.1/24

Proxying. Why and How. Alon Altman. Haifa Linux Club. Proxying p.1/24 Proxying p.1/24 Proxying Why and How Alon Altman alon@haifux.org Haifa Linux Club Proxying p.2/24 Definition proxy \Prox"y\, n.; pl. Proxies. The agency for another who acts through the agent; authority

More information

(Refer Slide Time: 01:40)

(Refer Slide Time: 01:40) Internet Technology Prof. Indranil Sengupta Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur Lecture No #25 Javascript Part I Today will be talking about a language

More information

CS 31: Intro to Systems Binary Arithmetic. Kevin Webb Swarthmore College January 26, 2016

CS 31: Intro to Systems Binary Arithmetic. Kevin Webb Swarthmore College January 26, 2016 CS 31: Intro to Systems Binary Arithmetic Kevin Webb Swarthmore College January 26, 2016 Reading Quiz Unsigned Integers Suppose we had one byte Can represent 2 8 (256) values If unsigned (strictly non-negative):

More information

Leader Services Version 2

Leader Services Version 2 Quick Start Guide for District Userss www.leader rservices.com/fedmonitor 2017 Leader Services Version 2 Introduction FedMonitor for Pennsylvaniaa was developed for the Pennsylvania Department of Education

More information

Intro to Programming. Unit 7. What is Programming? What is Programming? Intro to Programming

Intro to Programming. Unit 7. What is Programming? What is Programming? Intro to Programming Intro to Programming Unit 7 Intro to Programming 1 What is Programming? 1. Programming Languages 2. Markup vs. Programming 1. Introduction 2. Print Statement 3. Strings 4. Types and Values 5. Math Externals

More information

Managing State. Chapter 13

Managing State. Chapter 13 Managing State Chapter 13 Textbook to be published by Pearson Ed 2015 in early Pearson 2014 Fundamentals of Web http://www.funwebdev.com Development Section 1 of 8 THE PROBLEM OF STATE IN WEB APPLICATIONS

More information

Backend IV: Authentication, Authorization and Sanitization. Tuesday, January 13, 15

Backend IV: Authentication, Authorization and Sanitization. Tuesday, January 13, 15 6.148 Backend IV: Authentication, Authorization and Sanitization The Internet is a scary place Security is a big deal! TODAY What is security? How will we try to break your site? Authentication,

More information

Intel x86 Jump Instructions. Part 5. JMP address. Operations: Program Flow Control. Operations: Program Flow Control.

Intel x86 Jump Instructions. Part 5. JMP address. Operations: Program Flow Control. Operations: Program Flow Control. Part 5 Intel x86 Jump Instructions Control Logic Fly over code Operations: Program Flow Control Operations: Program Flow Control Unlike high-level languages, processors don't have fancy expressions or

More information

CS144: Sessions. Cookie : CS144: Web Applications

CS144: Sessions. Cookie : CS144: Web Applications CS144: Sessions HTTP is a stateless protocol. The server s response is purely based on the single request, not anything else Q: How does a web site like Amazon can remember a user and customize its results?

More information

One of the fundamental kinds of websites that SharePoint 2010 allows

One of the fundamental kinds of websites that SharePoint 2010 allows Chapter 1 Getting to Know Your Team Site In This Chapter Requesting a new team site and opening it in the browser Participating in a team site Changing your team site s home page One of the fundamental

More information

The PHP language. Teaching you everything about PHP? Not exactly Goal: teach you how to interact with a database via web

The PHP language. Teaching you everything about PHP? Not exactly Goal: teach you how to interact with a database via web Web programming The PHP language Our objective Teaching you everything about PHP? Not exactly Goal: teach you how to interact with a database via web Access data inserted by users into HTML forms Interact

More information

Intel x86 Jump Instructions. Part 5. JMP address. Operations: Program Flow Control. Operations: Program Flow Control.

Intel x86 Jump Instructions. Part 5. JMP address. Operations: Program Flow Control. Operations: Program Flow Control. Part 5 Intel x86 Jump Instructions Control Logic Fly over code Operations: Program Flow Control Operations: Program Flow Control Unlike high-level languages, processors don't have fancy expressions or

More information

Interim Registration

Interim Registration Interim Registration Students will need to do two things with Banner Web to register for an Interim project: Look at the descriptions of the projects and write down the project name and Course Reference

More information

EGR 111 Functions and Relational Operators

EGR 111 Functions and Relational Operators EGR 111 Functions and Relational Operators This lab is an introduction to writing your own MATLAB functions. The lab also introduces relational operators and logical operators which allows MATLAB to compare

More information

FIRST TIME USER GUIDE- 2016

FIRST TIME USER GUIDE- 2016 FIRST TIME USER GUIDE- 2016 COMMODITY TRACKING SYSTEM (CTS) Table of Contents Introduction... 2 Contacts... 2 Steps required Prior To Re-Registering Online With The National Energy Board (NEB):... 3 Become

More information

Chapter 2.6: Testing and running a solution

Chapter 2.6: Testing and running a solution Chapter 2.6: Testing and running a solution 2.6 (a) Types of Programming Errors When programs are being written it is not surprising that mistakes are made, after all they are very complicated. There are

More information

IT for Tourism Managers. Analytics

IT for Tourism Managers. Analytics IT for Tourism Managers. Analytics 1 What We Are Talking About Today 1. Logfiles 2. Web Analytics 3. Ranking 4. Web Reputation 5. Privacy & Security 2 Calendar. December 15, 2015 Tuesday, Dec 9 Digital

More information

WEB TECHNOLOGIES CHAPTER 1

WEB TECHNOLOGIES CHAPTER 1 WEB TECHNOLOGIES CHAPTER 1 WEB ESSENTIALS: CLIENTS, SERVERS, AND COMMUNICATION Modified by Ahmed Sallam Based on original slides by Jeffrey C. Jackson THE INTERNET Technical origin: ARPANET (late 1960

More information

This document explains how to obtain a direct link from within an existing Facebook page to the hotel s booking

This document explains how to obtain a direct link from within an existing Facebook page to the hotel s booking How to link Facebook with the WuBook Booking Engine! This document explains how to obtain a direct link from within an existing Facebook page to the hotel s booking engine page at WuBook via the WuBook

More information

Open Source Digitalization Application. User s Manual

Open Source Digitalization Application. User s Manual Open Source Digitalization Application User s Manual Easyndexer by Raúl Diez This is version 1.0 of the Easyndexer user s manual. This work is licensed under the Creative Commons Attribution 3.0 Unported

More information

Deep Dive: Pronto Transformations Reference

Deep Dive: Pronto Transformations Reference Deep Dive: Pronto Transformations Reference Available Transformations and Their Icons Transform Description Menu Icon Add Column on page 2 Important: Not available in Trial. Upgrade to Pro Edition! Add

More information

Combinatorics Prof. Dr. L. Sunil Chandran Department of Computer Science and Automation Indian Institute of Science, Bangalore

Combinatorics Prof. Dr. L. Sunil Chandran Department of Computer Science and Automation Indian Institute of Science, Bangalore Combinatorics Prof. Dr. L. Sunil Chandran Department of Computer Science and Automation Indian Institute of Science, Bangalore Lecture - 5 Elementary concepts and basic counting principles So, welcome

More information

ACORN.COM CS 1110 SPRING 2012: ASSIGNMENT A1

ACORN.COM CS 1110 SPRING 2012: ASSIGNMENT A1 ACORN.COM CS 1110 SPRING 2012: ASSIGNMENT A1 Due to CMS by Tuesday, February 14. Social networking has caused a return of the dot-com madness. You want in on the easy money, so you have decided to make

More information

Webshop Plus! v Pablo Software Solutions DB Technosystems

Webshop Plus! v Pablo Software Solutions DB Technosystems Webshop Plus! v.2.0 2009 Pablo Software Solutions http://www.wysiwygwebbuilder.com 2009 DB Technosystems http://www.dbtechnosystems.com Webshos Plus! V.2. is an evolution of the original webshop script

More information

Administrative Notes January 25, 2018

Administrative Notes January 25, 2018 Administrative Notes January 25, 2018 If you re not comfortable moving around a lot, don t sit in the last 3 rows today Everyone not in the last 3 rows needs a writing implement Please move your backpacks

More information

CS 31: Introduction to Computer Systems. 03: Binary Arithmetic January 29

CS 31: Introduction to Computer Systems. 03: Binary Arithmetic January 29 CS 31: Introduction to Computer Systems 03: Binary Arithmetic January 29 WiCS! Swarthmore Women in Computer Science Slide 2 Today Binary Arithmetic Unsigned addition Subtraction Representation Signed magnitude

More information

SBCC Web File System - Xythos

SBCC Web File System - Xythos Table of Contents Table of Contents...1 Purpose...1 Login Procedure...1 Creating and Sharing a Web Folder for MAT153...2 Dreamweaver Remote Info...4 I Forgot My Pipeline Credentials...6 Purpose This purpose

More information

CIT 590 Homework 5 HTML Resumes

CIT 590 Homework 5 HTML Resumes CIT 590 Homework 5 HTML Resumes Purposes of this assignment Reading from and writing to files Scraping information from a text file Basic HTML usage General problem specification A website is made up of

More information

University of Washington, CSE 190 M Homework Assignment 9: Remember the Cow (To-Do List)

University of Washington, CSE 190 M Homework Assignment 9: Remember the Cow (To-Do List) University of Washington, CSE 190 M Homework Assignment 9: Remember the Cow (To-Do List) In this assignment you will write a small yet complete "Web 2.0" application that includes user login sessions,

More information

Programming for the Web with PHP

Programming for the Web with PHP Aptech Ltd Version 1.0 Page 1 of 11 Table of Contents Aptech Ltd Version 1.0 Page 2 of 11 Abstraction Anonymous Class Apache Arithmetic Operators Array Array Identifier arsort Function Assignment Operators

More information

Programming Data Structures and Algorithms Prof. Shankar Balachandran Department of Computer Science Indian Institute of Technology, Madras

Programming Data Structures and Algorithms Prof. Shankar Balachandran Department of Computer Science Indian Institute of Technology, Madras Programming Data Structures and Algorithms Prof. Shankar Balachandran Department of Computer Science Indian Institute of Technology, Madras Module 12B Lecture - 41 Brief introduction to C++ Hello, welcome

More information

Module 5: Javascript, Cookies COM 420

Module 5: Javascript, Cookies COM 420 Module 5: Javascript, Cookies COM 420 What is the real Internet Lab 1 Review Many Nesting Problems How to check your code Why is nesting Important Recap how grades work in the class Re-Submitting and updating

More information

LXXVIII. Session handling functions

LXXVIII. Session handling functions LXXVIII. Session handling functions 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

More information

reaches back to the user over port 80. See figure 1.1 for a visual representation of the state approach.

reaches back to the user over port 80. See figure 1.1 for a visual representation of the state approach. Team 4 CMSC 495 February 4 2017 Design Software Design Components The broad overview of the Hygieia system allows users to interface with the program through a third party browsers like Internet Explorer,

More information

Student Portal. A guide for students. Department of Education and Training, Western Australia,

Student Portal. A guide for students. Department of Education and Training, Western Australia, Student Portal A guide for students Department of Education and Training, Western Australia, 2009 1 Table of Contents What is the Portal?...3 What will I need to access the portal?...3 Safety and responsibility

More information

Web development using PHP & MySQL with HTML5, CSS, JavaScript

Web development using PHP & MySQL with HTML5, CSS, JavaScript Web development using PHP & MySQL with HTML5, CSS, JavaScript Static Webpage Development Introduction to web Browser Website Webpage Content of webpage Static vs dynamic webpage Technologies to create

More information

Developer Resources: PIN2

Developer Resources: PIN2 Administrative Technology Services Technology and Data Services Developer Resources: PIN2 Contents Introduction... 2 Registering an Application... 2 Information Required for Registration... 3 Information

More information

Logging in. Below this is a series of links to the course structure documentation for each unit in the Level 3 Diploma in Castings Technology.

Logging in. Below this is a series of links to the course structure documentation for each unit in the Level 3 Diploma in Castings Technology. Logging in Before 'Logging in' Make sure you have navigated to www.foundrytrainingonline.com using your browser address window (not Google search window). Occasionally, the location of the site will move

More information

PHP 5 Introduction. What You Should Already Know. What is PHP? What is a PHP File? What Can PHP Do? Why PHP?

PHP 5 Introduction. What You Should Already Know. What is PHP? What is a PHP File? What Can PHP Do? Why PHP? PHP 5 Introduction What You Should Already Know you should have a basic understanding of the following: HTML CSS What is PHP? PHP is an acronym for "PHP: Hypertext Preprocessor" PHP is a widely-used, open

More information

PHP: Cookies, Sessions, Databases. CS174. Chris Pollett. Sep 24, 2008.

PHP: Cookies, Sessions, Databases. CS174. Chris Pollett. Sep 24, 2008. PHP: Cookies, Sessions, Databases. CS174. Chris Pollett. Sep 24, 2008. Outline. How cookies work. Cookies in PHP. Sessions. Databases. Cookies. Sometimes it is useful to remember a client when it comes

More information

c122jan2714.notebook January 27, 2014

c122jan2714.notebook January 27, 2014 Internet Developer 1 Start here! 2 3 Right click on screen and select View page source if you are in Firefox tells the browser you are using html. Next we have the tag and at the

More information