You are on page 1of 2

This problem is divided into two modules, which are prog1.py and colleges.java.

ABSTRACT
By this portal any college administration can register their colleges with the details.
We can also able to search college with preferred courses and location.Also we can able to
delete college details.

APPROACH AND IMPLEMENTATION:

CREATING USER INTERFACE

In the UI people can view the details and enter what they want. So i used “JLabel” fo the details
and “JTextField” for the text area.
I have used Swing package in java for this. This home page contains class attributes such as
college id, college name, course and location. Also it contains features for registration,searching
and delete colleges.

After successfull registration, the information will be saved on the csv file. Filewriter and
Printwriter will be used for this service and “Record Registered” will popped up after successful
registration.

SEARCH PAGE
As like before “JLabel” and “JTextField” are used for details and for entering the data.
By this page we can able to search college with the preferences you want.

The Search terms are changed in the form of string and we have to compare the string with the
previous cells in the row and if the matching is found it will be appended to the arraylist.
Likewise each and every matches are stored in the arraylist and finally every string is concated
and displayed in the form of list by “JList” in a seperate frame.

DELETE PAGE
The delete feature also follows the same logic for the search page.
But if the entered id didn’t matches any of the cells the process will continue for the entire cells.
Then the new csv file created without the id entered. So we can consider the college is deleted
and rename the new file name with the old file name.

Conclusion
The above code functions seperability and code reusability. It provides code reusability and
maintanence with ease in each proceess.

LOGIN VALIDATION USING COOKIES


ABSTRACT
This Project helps users to be able to logged in for 24hrs by the use of cookie.
Cookie is used to identify users and possibly create customized web pages or to save login
information for users.
Also we can able to validate user credentials using html and javascript and for the security
purposes we use AES encryption standard.

LOGIN PAGE
Here i created login page by the use of form tag. If user close the session it will erase the
session data.

VALIDATING CREDENTIALS
The validation criteria are username should be “LTI” and the password should be “123”.
After validating the page will be redirected to welcome page with some message,otherwise it wil
stay in the same page.

REMEMBER ME

The remember me check box is used to set the cookies before we store the username and
password are encrypted using AES algorithm from the package cryptoJS.and it is decrypted

When the user checks the remember me option the credentials are passed to setcookies
method. THen the username and password are stored as encrypted cookie with a time periord.

CONCLUSION
Thus from the above project,we can say that the cookies are useful for others by the use of
automatic filling of credentials also in a secured encrypted way.

You might also like